PDA

View Full Version : .htaccess User Agent Allow


MacGuru
08-15-2009, 12:44 AM
I have the following htaccess configuration to block users from using the Java agent to access the site, however I myself need to allow couple IP's the ability to access the site/server with Java.

Here is my current htaccess:

RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^Java/1.*
RewriteRule ^(.*)$ [F]


Thank You!

oesxyl
08-15-2009, 05:41 AM
I have the following htaccess configuration to block users from using the Java agent to access the site, however I myself need to allow couple IP's the ability to access the site/server with Java.

Here is my current htaccess:

RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^Java/1.*
RewriteRule ^(.*)$ [F]


Thank You!
http://httpd.apache.org/docs/2.2/rewrite/rewrite_guide.html#blocking-of-robots

best regards