FairPlaySocial already has a small feature to deny creating posts with Forbidden Urls.
There is a table "ForbiddenUrl" and a class "ForbiddenUrlService".
The urls must be the shortest form of the url, without protocol
Currently, the table is empty, we need to start filling the list with 2 types of urls
In the Post-Deployment script, add the lines to insert the Forbidden Urls.
Once the list is filled, it is required to test users cannot create posts containing any forbidden url.
Note: Research if it is feasible to create a custom validator reading a test file embedded in the assembly, containing the list of forbidden sites, this will help to avoid doing a roundtrip to check for forbidden urls.
FairPlaySocial already has a small feature to deny creating posts with Forbidden Urls. There is a table "ForbiddenUrl" and a class "ForbiddenUrlService". The urls must be the shortest form of the url, without protocol
Currently, the table is empty, we need to start filling the list with 2 types of urls
In the Post-Deployment script, add the lines to insert the Forbidden Urls.
Once the list is filled, it is required to test users cannot create posts containing any forbidden url.
Note: Research if it is feasible to create a custom validator reading a test file embedded in the assembly, containing the list of forbidden sites, this will help to avoid doing a roundtrip to check for forbidden urls.