Forum Moderators: phranque
<Directory /home/www/directory/of/interest/>
Order allow,deny
allow from all
deny from 1.2.3.4/24
deny from 5.6.7.8/24
etc.
ErrorDocument 403 http://server.root/errors/403.html
</Directory>
<Directory /home/www/directory/of/interest/>
Order allow,deny
allow from all
Include /path/to/ipblock.dat
ErrorDocument 403 http://server.root/errors/403.html
</Directory>
But...if I put the ips I want to block into a file (call it ipblock.dat)
the 403 page isn't presented. Instead, what is seen is some message about too many redirects.
This webpage has a redirect loop
The webpage at [server.address...] has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.
Here are some suggestions:
Reload this webpage later.
Learn more about this problem.
Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.