Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

RewriteCond %{HTTP_USER_AGENT}

213 views
Skip to first unread message

Teotónio Ricardo ( cenourinha )

unread,
Sep 11, 2008, 1:32:09 PM9/11/08
to .htaccess
Hi there,

I want to block the access of these user agents to my website
using .htaccess:

Opera/9.02 (Windows NT 5.1; U; ru)
and
Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.8.1.1) Gecko/
20061204 Firefox/2.0.0.1

What can i do?

# Something like this?
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/5.0 (Windows; U; Windows NT
5.1; ru; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1 [OR]
RewriteCond %{HTTP_USER_AGENT} ^Opera/9.02 (Windows NT 5.1; U; ru)
RewriteRule ^(.*)$ http://www.google.com
Reply all
Reply to author
Forward
0 new messages