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

comments


Reply

2 Posts   375 Views

Avatar
richigo

9 June 2012 at 12:55am Community Member, 1 Post

Dear Silverstripe Users,

Since a couple of weeks our website has been used by a spambot to post comments.
I found some examples of how to disable this feature yet none of them work in version 2.4

Which way would be best to disable this feature as we don't use this in the website at all.

Any help would be greatly appreciated,

best regards,

Richard

Avatar
Willr

9 June 2012 at 10:37pm Forum Moderator, 5511 Posts

You can turn off comments on a page by page basis by unticking the 'Allow Comments' checkbox in the CMS under the pages 'Behaviour' tab. Or you can remove the $PageComments variable from themes/yourtheme/templates/layout/Page.ss as then nothing can be rendered into the page.