Welcome to WebmasterWorld Guest from 54.234.153.197

Forum Moderators: Ocean10000 & incrediBILL & keyplyr

Message Too Old, No Replies

oBot change of User-agent format

another means of blocking oBot in htaccess

     
11:49 am on Oct 2, 2004 (gmt 0)

New User

10+ Year Member

joined:Apr 28, 2003
posts:38
votes: 0


Browsing log file of one site that I manage I just discovered that oBot got past my blocking of it in my .htaccess file. Originally I used just the second entry which was written at ^oBot [OR] with other items following, but now I will use two lines as I want to block it starting as User-agent or anywhere in the string thus I have preceeded it with a literal space, and now hope that I will block it whether it uses either format. Log file entry also included herein.

213.252.152.10 - - [28/Sep/2004:03:06:17 -0700] "GET /robots.txt HTTP/1.1" 200 698 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; obot)"

RewriteCond %{HTTP_USER_AGENT} \ oBot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^oBot [OR]
# ... other entries followed

Hope this helps other people. Note that for the second entry it "could" also have the NC option to catch both upper and lower case.

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members