summaryrefslogtreecommitdiff
path: root/inc/config.php
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2015-03-24 05:19:25 +0100
committerczaks <marcin@6irc.net>2015-03-24 05:19:25 +0100
commit10f93d0d4367ade293c7a8733989cedcd7ca791a (patch)
tree42c9087e20d952d810f90d10db6a3ed2fee23a96 /inc/config.php
parent9fa320838b19506d2bfd45f995298e75766530d9 (diff)
implement a protection against transparent proxies
Diffstat (limited to 'inc/config.php')
-rw-r--r--inc/config.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/inc/config.php b/inc/config.php
index 42e1c32b..0ba1952b 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -290,6 +290,12 @@
// Ability to lock a board for normal users and still allow mods to post. Could also be useful for making an archive board
$config['board_locked'] = false;
+ // If poster's proxy supplies X-Forwarded-For header, check if poster's real IP is banned.
+ $config['proxy_check'] = false;
+
+ // If poster's proxy supplies X-Forwarded-For header, save it for further inspection and/or filtering.
+ $config['proxy_save'] = false;
+
/*
* Custom filters detect certain posts and reject/ban accordingly. They are made up of a condition and an
* action (for when ALL conditions are met). As every single post has to be put through each filter,