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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

spam filters checking for http in content


Go to End


2 Posts   646 Views

Avatar
JonShutt

Community Member, 244 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
JonShutt

Community Member, 244 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