Forum Moderators: phranque
followed by rewrite conditions and redirects...
How do I set a variable for the SetEnvIf requests and still use Deny from without a variable or do I need to put a ban on the end of every Deny from line?
I've been reading, but everything I try either results in a 500 or no block of the IP.
I want to use DENY FROM so I can use CIDR/Netmasks.
<another edit>
think I figured it out, no more 500s with this:
SetEnvIf Request_URI \.htaccess$ ban
SetEnvIf Request_URI \.htpasswd$ ban
<Files *>
Order Allow,Deny
Deny from 24.28.241.xx
Deny from 64.15.xx.0
Deny from 125.xx.0.0/16
Deny from 165.xx
Deny from 193.40.x
Deny from 193.51.xx
Deny from 193.xx.0/19
Allow from all
Deny from env=ban
</Files>