From 31e312028ca8a8a546558e21a2aa899f708386f5 Mon Sep 17 00:00:00 2001 From: rvelices Date: Thu, 16 Nov 2006 03:31:57 +0000 Subject: - bug fix: comments_forall and category commentable were not checked during POST and a comment could be inserted - feature 524: anti-spam: - check number of links - check ip address against spamhaus.org block list - action when comment is qualified spam (needs validation or reject) - so far everything is in the config file git-svn-id: http://piwigo.org/svn/trunk@1610 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/config_default.inc.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/config_default.inc.php') diff --git a/include/config_default.inc.php b/include/config_default.inc.php index b70b24e21..56c656451 100644 --- a/include/config_default.inc.php +++ b/include/config_default.inc.php @@ -86,6 +86,17 @@ $conf['top_number'] = 15; // anti-flood_time : number of seconds between 2 comments : 0 to disable $conf['anti-flood_time'] = 60; +// qualified spam comments are not registered (false will register them +// but they will require admin validation) +$conf['comment_spam_reject'] = true; + +// maximum number of links in a comment before it is qualified spam +$conf['comment_spam_max_links'] = 3; + +// if the ip address of a comenteer is in spamhaus.org block list, the +// comment is qualified spam +$conf['comment_spam_check_ip'] = false; + // calendar_datefield : date field of table "images" used for calendar // catgory $conf['calendar_datefield'] = 'date_creation'; -- cgit v1.2.3