Forum Moderators: phranque

Message Too Old, No Replies

Deny access to a specific computer?

         

helleborine

12:49 pm on Apr 16, 2005 (gmt 0)

10+ Year Member



I'd like to deny access to a malicious individual with this computer setup: "Macintosh; U; PPC; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02"

I'm sorta lucky in that it's somewhat uncommon.

Is that possible in .htaccess?

Thanks!

Span

1:28 pm on Apr 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Doesn't that malicious person has an IP number? Better to serve that a 403. I bet there's another browser in that Mac.


RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^Mozilla\/5.0\ \(Macintosh;\ U;\ PPC;\ en-US;\ rv:1.0.2\)\ Gecko\/20030208\ Netscape\/7.02 [NC]
RewriteRule .* - [F]

sitz

11:36 pm on Apr 16, 2005 (gmt 0)

10+ Year Member



I'd also be willing to bet that there are legitimate users out there with this same User-Agent string that'd you'd be blocking. Much better to block the IP address or (even better) any request matching the signature of the malicious request.