Hi,
I use the following mod rewrite rules:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteLogLevel 0
RewriteCond %{HTTP_USER_AGENT} ^Bullseye.* [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^WebZIP/ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus.* [NC]
RewriteRule ^/.* - [F,L]
RewriteCond %{HTTP_USER_AGENT} ^-?$
RewriteRule ^/.*$ /usr/local/etc/httpd/sites/infinisource.com/cgi-bin/noID.cgi [L,T=application/x-httpd-cgi]
RewriteCond %{HTTP_USER_AGENT} ^.*Ad.*Muncher.*v4.*.* [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^.*NetCaptor.* [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^.*WebWasher.* [NC]
RewriteRule ^/(.+) [L]
</IfModule>
This works perfect if used in the Virtual Host, but doesn't work at all when used in the server config. According to the Apache documents it should work in the server config (see: )
Does anybody have any info on this?
I use the following mod rewrite rules:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteLogLevel 0
RewriteCond %{HTTP_USER_AGENT} ^Bullseye.* [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^WebZIP/ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus.* [NC]
RewriteRule ^/.* - [F,L]
RewriteCond %{HTTP_USER_AGENT} ^-?$
RewriteRule ^/.*$ /usr/local/etc/httpd/sites/infinisource.com/cgi-bin/noID.cgi [L,T=application/x-httpd-cgi]
RewriteCond %{HTTP_USER_AGENT} ^.*Ad.*Muncher.*v4.*.* [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^.*NetCaptor.* [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^.*WebWasher.* [NC]
RewriteRule ^/(.+) [L]
</IfModule>
This works perfect if used in the Virtual Host, but doesn't work at all when used in the server config. According to the Apache documents it should work in the server config (see: )
Does anybody have any info on this?