aboutsummaryrefslogtreecommitdiffstats
path: root/include/config_default.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-11-16 03:31:57 +0000
committerrvelices <rv-github@modusoptimus.com>2006-11-16 03:31:57 +0000
commit31e312028ca8a8a546558e21a2aa899f708386f5 (patch)
treefb8c86752d157de0c113e9a652f1a6737f9e4523 /include/config_default.inc.php
parent221d839769ae15035397ab691a1bea8567b60ee0 (diff)
- 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
Diffstat (limited to 'include/config_default.inc.php')
-rw-r--r--include/config_default.inc.php11
1 files changed, 11 insertions, 0 deletions
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';