Forum Moderators: phranque
204.13.153.60 - - [01/Mar/2006:10:47:01 -0800] "GET / HTTP/1.1" 200 407 "-" "Mozilla/4.0 (compatible; Win32; WinHttp.WinHttpRequest.5)"
72.18.136.188 - - [01/Mar/2006:10:50:31 -0800] "GET / HTTP/1.1" 200 407 "-" "Mozilla/4.0 (compatible; Win32; WinHttp.WinHttpRequest.5)"
216.153.94.14 - - [01/Mar/2006:10:53:03 -0800] "GET / HTTP/1.1" 200 407 "-" "Mozilla/4.0 (compatible; Win32; WinHttp.WinHttpRequest.5)" Anyone know of an easy way I can ban the user agent involved here? Its coming in from hundreds of different ip's so I cant really just ban by ip.
Remember Im a freebsd newbie so be specific if you can. I was thinking there should be a way to add it to my IPFW rule, or possibly in httpd.conf. Thanks a lot in advance!
[webmasterworld.com...]
[google.com...]
[webmasterworld.com...]
Once you've done your home work, and if you still have specific problem,
someone will give helpful answer, most probably.
You can hire someone if you don't have time to search/learn, as well.
Welcome to WebmasterWorld!
You can block WinHttp user-agent requests using mod_rewrite or mod_access, as described in our long-running series of threads, A close to perfect htaccess ban list [google.com].
Note that many of the user-agents cited in those threads are no longer active; If you decide to use this method, block only those user-agents that are actually a problem on your site.
For more information, see the documents cited in our forum charter [webmasterworld.com] and the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com].
Jim
note: I actually have my web site url where it says google.com though.
RewriteEngine On
deny from all
</htdocs>
RewriteCond %{HTTP_USER_AGENT} ^WinHttpRequest.5
RewriteRule ^.* - [F]
RewriteCond %{HTTP_REFERER} ^http://www.iaea.org$
RewriteRule!^http://[^/.]\.google.com* - [F]
RewriteRule linkout [linkouthere.com...]
RewriteEngine on
# Next line if for mod_access, not mod_rewrite - commented out
# deny from all
#
# Next line is almost certainly misplaced -- I can't comment without more info
</htdocs>
# Remove the anchoring to match what you posted for the visiting UA string above
RewriteCond %{HTTP_USER_AGENT} WinHttp
RewriteRule .* - [F]
#
# Remove end-anchor, escape literal periods
RewriteCond %{HTTP_REFERER} ^http://www\.iaea\.org
# Syntax was 'very wrong' - guessing at your intent
RewriteRule .* - [F]
#
# Any URl on your site contianing "linkout" gets redirected to another site
RewriteRule linkout http://linkouthere.com [R=301,L]
Jim
The RewriteRule for my linkout is working fine now. Only problem is the user agent in question is still hitting the site non stop. What i have so far doesnt appear to be working.
RewriteEngine On
# Remove the anchoring to match what you posted for the visiting UA string above
RewriteCond %{HTTP_USER_AGENT} ^WinHttp*
RewriteRule .* - [F]
#
# Remove end-anchor, escape literal periods
RewriteCond %{HTTP_REFERER} ^http://www\.iaea\.org
RewriteRule .* - [F]
#
# Any URl on your site contianing "linkout" gets redirected to another site
RewriteRule linkout http://linkout.com [R=301,L]
The log file looks differe now though, the hits looks like this.
209.132.211.130 - - [03/Mar/2006:01:54:12 -0800] "GET / HTTP/1.1" 403 279 "-" "Mozilla/4.0 (compatible; Win32; WinHttp.WinHttpRequest.5)"
216.239.136.23 - - [03/Mar/2006:01:54:17 -0800] "GET / HTTP/1.1" 403 279 "-" "Mozilla/4.0 (compatible; Win32; WinHttp.WinHttpRequest.5)"
Its now a "GET / HTTP/1.1" 403 279
Does this mean they are being blocked? And if so any way to not log the hits?