To whom it may concern,

We are getting many comments where the username being entered is a URL. Is it possible to create a custom filter that marks as spam any comments where the name entered is a URL? When creating a custom filter, I'm not sure what the scan referrer or user agent options are for.

It should be noted that comments with a URL entered as a name also usually have two URL's in the body, but I do not know where to set the maximum of URL's allowed for the "Spam URL filter" module to 1.

Thanks,
Rene

CommentFileSizeAuthor
#1 CustomFilter.png53.29 KBAlexisWilke

Comments

AlexisWilke’s picture

StatusFileSize
new53.29 KB

Hi Rene,

I had those a lot and blocked them using modsecurity which is directly in Apache2. That's much faster than using Drupal. See:

http://www.modsecurity.org/documentation/modsecurity-apache/2.5.5/modsec...

Now I'm attaching an example of custom filter. If you get these 2 links as [url= and [link= then you can easily block them.

Thank you.
Alexis Wilke

avpaderno’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

I am closing this issue, since it's for a Drupal version no longer supported.