summaryrefslogtreecommitdiffstats
path: root/Bugzilla/ModPerl.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-09-11 18:59:58 +0200
committerGitHub <noreply@github.com>2017-09-11 18:59:58 +0200
commitce38f8be741a8b618dfac9d2f6f166a6e3954e45 (patch)
tree67c2d67bc1c180bb2be80e12b6d07bf9ef42446f /Bugzilla/ModPerl.pm
parentd3cf76c62299d9ff9e3589a3c159571711d8d186 (diff)
downloadbugzilla-ce38f8be741a8b618dfac9d2f6f166a6e3954e45.tar.gz
bugzilla-ce38f8be741a8b618dfac9d2f6f166a6e3954e45.tar.xz
Bug 1393888 - Write httpd access handler to block by ip address stored in memcached
Diffstat (limited to 'Bugzilla/ModPerl.pm')
-rw-r--r--Bugzilla/ModPerl.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla/ModPerl.pm b/Bugzilla/ModPerl.pm
index 7c367ed2e..142df63d4 100644
--- a/Bugzilla/ModPerl.pm
+++ b/Bugzilla/ModPerl.pm
@@ -19,6 +19,8 @@ use Carp ();
# (and there might be side-effects, since this code is loaded very early in the httpd startup)
use Template ();
+use Bugzilla::ModPerl::BlockIP;
+
sub apache_config {
my ($class, $cgi_path) = @_;
@@ -72,6 +74,7 @@ __DATA__
# the built-in rand(), even though we never use it in Bugzilla itself,
# so we need to srand() both of them.)
PerlChildInitHandler "sub { Bugzilla::RNG::srand(); srand(); }"
+PerlAccessHandler Bugzilla::ModPerl::BlockIP
# It is important to specify ErrorDocuments outside of all directories.
# These used to be in .htaccess, but then things like "AllowEncodedSlashes no"