Click to See Complete Forum and Search --> : .htaccess help


davidjmorin
February 2nd, 2008, 11:30 PM
i want to disallow the following user agent. how would i do it?

BlackBerry8300/4.2.2 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/102 UP.Link/6.3.0.0.0

this is my .htaccess file info

AddHandler fcgid-script .php
FCGIWrapper /usr/local/cpanel/cgi-sys/fcgiwrapper .php


<Files 403.shtml>
order allow,deny
allow from all
</Files>

deny from 72.227.91.133
deny from 209.183.32.24
deny from 216.9.250.114
deny from 216.9.250.83
deny from 216.9.250.109
deny from 216.9.250.84
deny from 216.9.250.108 216.9.250.41 216.9.250.38 216.9.250.40

PeejAvery
February 3rd, 2008, 08:48 AM
The following should do the trick.

RewriteCond %{HTTP_user_agent} BlackBerry8300
RewriteRule .* notallowed.html [nc]