I'm upgrading -- From Apache version - 1.3.33 to Apache version - 2.2.15, and from php4 to php 5
Both my DB's and I are handling the PHP 5 just fine, but I'm having a bit of trouble getting the htaccess to spit out the 403's like it used to do.
I've been looking over this documentation, and I'm not finding what the problem might be with my htaccess writes.
I've got rewrite engine on, and have been writing my denials like this;
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [NC]
RewriteRule ^.* - [F]
And;
RewriteCond %{HTTP_REFERER} ^http://www.example.com$
RewriteRule !^http://[^/.]\.example.com.* - [F]
And;
<Files 403.shtml>
order allow,deny
allow from all
</Files>
deny from 82.*.*.*
deny from 82.*.*.*
and so on and so forth ..
The only thing I can get to work in my htaccess is my 301 www redirect ..
Everything else puts out 404's instead of 403's ..
I'm thinking that this might be a simple thing that I might have overlooked .. or not?