Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

spam filters checking for http in content


Reply


2 Posts   201 Views

Avatar
Futureweb

Community Member, 233 Posts

20 February 2014 at 11:19pm

I know there are various plugins for adding capchas to the forms - specifically comments forms that are prone to getting spammed, but I was wondering if anyone has written a spam filter that checks for, and blocks certain strings from the main comment fields - eg, if the post contains 'http://' or 'porn' or 'drugs' etc etc we could automatically reject those submissions?

Avatar
Futureweb

Community Member, 233 Posts

3 March 2014 at 10:49am

I'm also thinking it could be worth being able to block the submission by checking the country of the IP address - eg, only allow submissions from the countries you want.

Or for comments forms, you could just hide the form altogether for countries other than the ones you specify