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.

Archive /

Our old forums are still available as a read-only archive.

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

enableing spam protection on comments.


Go to End


3 Posts   2160 Views

Avatar
Matt Hardwick

Community Member, 61 Posts

17 September 2008 at 2:27am

Edited: 17/09/2008 2:28am

Hi one of my blog posts just got spammed with 25 comments about ephedrine and pornography. I thought it was meant to pick up such comments automatically, it obviously didn't - so is there something I need to do to make it moderate comments? If it is already trying to catch these kind of comments (and it just didn't pick these particular ones up) is there any way that I force all comments to need to be manually moderated (I have to login and approve them manually) before they are published.

TIA

Matt.

Avatar
(deleted)

Community Member, 473 Posts

17 September 2008 at 7:57am

To enable the maths spam question (like the one on the SilverStripe blog), add

MathSpamProtection::setEnabled();

to mysite/_config.php

To enable moderation of all posts, add

PageComment::enableModeration();

to mysite/_config.php

Avatar
Matt Hardwick

Community Member, 61 Posts

17 September 2008 at 11:52pm

Thankyou so much.

Site goes public on Saturday - we are getting jitters already.

Word has leaked and we are getting 100s of (unique) users a day and we haven't advertised the address yet or anything (just word of mouth traffic as 90% of our hits are direct address typing in)!