I got this from here. When I test it with Sam Spade I get:
10/15/01 21:46:22 Browsing [XXXXX.com...]
Fetching [XXXXXX.com...] ...
GET / HTTP/1.1
Host: XXXXXXXXX.com
Connection: close
User-Agent: Wget/1.4.5
Is this right?
RewriteCond %{HTTP_USER_AGENT} ^(Mozilla\/4\.0\ \(compatible\;\ BorderManager¦Mozilla\/3\.01\ \(compatible\;\)¦Ditto¦Email¦Bulk¦Extra¦Tele¦Site¦Extract¦Scann¦HTTPConnect¦DDemo¦EBrowse) [NC]
RewriteRule .* - [F]
This is what I have to forbid naughty UA's.
sarkye:
The rewrite facilities mentioned here are a feature of mod_rewrite, a module which can optionally be used if you use the apache web server (commonly used on unix/linux servers). The rules above go in the .htaccess file in the appropriate directory.
(edited by: theperlyking at 11:34 pm (gmt) on Oct. 19, 2001