Forum Moderators: phranque
I'm no expert, but based on toolman's Perfect .htaccess ban list [webmasterworld.com], this is what I came up with.
Or, you can just wait for the real experts to drop in :)
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_USER_AGENT} ^linko/0.1
RewriteRule ^.* - [F]
RewriteCond %{HTTP_USER_AGENT} ^linko/0\.1\ libwww-perl/5\.65$
RewriteRule .* - [F]
RewriteCond %{HTTP_USER_AGENT} ^linko/[^\ ]*\ libwww-perl/
RewriteRule .* - [F]
You might also have a custom 403 page, and any User-agent should be allowed to read robots.txt if you have an entry that covers that UA, so let's not block in those cases:
RewriteCond %{HTTP_USER_AGENT} ^linko/[^\ ]*\ libwww-perl/
RewriteRule !^(custom403\.html¦robots\.txt) - [F]
Rememeber to replace those broken vertical pipe characters with solid ones!
Jim