Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL

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)

10+ Year Member

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. - - [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.


Featured Threads

Hot Threads This Week

Hot Threads This Month