Forum Moderators: DixonJones
How can I stop it from coming!?
=======================================
Host: 121.1.6.130
/links.php
Http Code: 200 Date: Dec 17 19:53:15 Http Version: HTTP/1.1 Size in Bytes: 8141
Referer: [oradvocacy.org...]
Agent: PycURL/7.15.5
/an.php
Http Code: 200 Date: Dec 17 19:54:08 Http Version: HTTP/1.1 Size in Bytes: 14515
Referer: [abi.co.uk...]
Agent: PycURL/7.15.5
/xmas.php
Http Code: 200 Date: Dec 17 19:54:15 Http Version: HTTP/1.1 Size in Bytes: 33349
Referer: [suedafrikainfo.ch...]
Agent: PycURL/7.15.5
/sitemap.php
Http Code: 200 Date: Dec 18 01:02:59 Http Version: HTTP/1.1 Size in Bytes: 6489
Referer: [query.no...]
Agent: PycURL/7.15.5
/contact.php
Http Code: 200 Date: Dec 18 01:03:27 Http Version: HTTP/1.1 Size in Bytes: 5467
Referer: [signs-marks.com...]
Agent: PycURL/7.15.5
/instructor.php
Http Code: 200 Date: Dec 18 01:04:10 Http Version: HTTP/1.1 Size in Bytes: 8423
Referer: [ceilingchina.com...]
Agent: PycURL/7.15.5
/form.html
Http Code: 200 Date: Dec 18 01:04:18 Http Version: HTTP/1.1 Size in Bytes: 7131
Referer: [rassvet.org...]
Agent: PycURL/7.15.5
/books.php
Http Code: 200 Date: Dec 18 01:04:46 Http Version: HTTP/1.1 Size in Bytes: 14811
Referer: [rassvet.org...]
Agent: PycURL/7.15.5
/books.php
Http Code: 200 Date: Dec 18 01:06:01 Http Version: HTTP/1.1 Size in Bytes: 22583
Referer: [welshjobs.com...]
Agent: PycURL/7.15.5
=======================================
<Files 403.shtml>
order allow,deny
allow from all
</Files>
deny from 71.136.*.*
deny from 11.111.*.*
SetEnvIfNoCase User-Agent "libwww-perl/" bad_bot
SetEnvIfNoCase User-Agent "PycURL/7.15" bad_bot
Order Allow,Deny
Allow from all
Deny from env=bad_bot
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^pycURL [OR]
RewriteRule ^.* - [F,L]
Can any one suggest how i should change this to ban PycURL?
Thanks.
This should work better:
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^PycURL/ [NC]
RewriteRule .* - [F]
Jim
<Files 403.shtml>
order allow,deny
allow from all
</Files>
deny from 71.136.*.*
deny from 11.111.*.*
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^libwww-perl/ [NC]
RewriteCond %{HTTP_USER_AGENT} ^PycURL/7.15 [NC]
RewriteRule .* - [F]
(err.... not sure if the final line should have the NC on it or not)
Remember - if in doubt, its quite easy to install the appropriate extension on firefox to change your agent and then test the htaccess yourself :)
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^libwww-perl/
RewriteCond %{HTTP_USER_AGENT} ^PycURL/7.15
RewriteRule .* - [F]
Unless you are sure that the user-agent case never changes, use [NC] on both RewriteConds, and [OR] on all but the last RewriteCond. More information is available in the Apache Forum Charter and in the Apache section of the WebmasterWorld library.
Jim