From ce38f8be741a8b618dfac9d2f6f166a6e3954e45 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Mon, 11 Sep 2017 12:59:58 -0400 Subject: Bug 1393888 - Write httpd access handler to block by ip address stored in memcached --- Bugzilla/ModPerl.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Bugzilla/ModPerl.pm') 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" -- cgit v1.2.3-24-g4f1b