2018-07-22, 08:13 AM
I want to create a word filter that takes a url and disables it.
We occasionally get spam and the urls are all the same sites, indian student sites.
So I was thinking to try to try to discourage them we would use the word filter.
What I need is 'website.domain/(any text here)' to be banned.
As they post 20+ random links to pages on the sites.
This way we can filter out unwanted top level urls and any folder they link.
I don't know advanced regular expression, so I don't know how to have the url and filter out anything after the /
This isn't the best but works sort of.
Using Word Filters, I have it so if any specific url if that's posted in a post anywhere the entire post gets hidden, leaving just the title of the thread.
There is probably better ways to do this.
So enlighten me.
Due to character limit I can only have a certain amount of text as the notice.
We occasionally get spam and the urls are all the same sites, indian student sites.
So I was thinking to try to try to discourage them we would use the word filter.
What I need is 'website.domain/(any text here)' to be banned.
As they post 20+ random links to pages on the sites.
This way we can filter out unwanted top level urls and any folder they link.
I don't know advanced regular expression, so I don't know how to have the url and filter out anything after the /
This isn't the best but works sort of.
Using Word Filters, I have it so if any specific url if that's posted in a post anywhere the entire post gets hidden, leaving just the title of the thread.
There is probably better ways to do this.
So enlighten me.
Word:
.*website.domain.*
Replacement:
Post hidden: [Website Name][br]Please edit your post to remove the offending links
Due to character limit I can only have a certain amount of text as the notice.