Forum Moderators: phranque

Message Too Old, No Replies

log files

can someone tell me what this is?

         

Beach_lady

6:37 pm on Mar 6, 2004 (gmt 0)

10+ Year Member



Another KMendez Creation; AskBar 3.00; .NET CLR 1.0.3705; .NET CLR 1.1.4322)
This was in my log file. Had not seen it before.
Also what do you add to your robot.txt file to stop things like Hotbar and FunWebProducts from coming to your site? I heard that neither if these are things we want.
Thanks

decaff

11:38 pm on Mar 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Beach_Lady...

Blocking these type of agents really depends on if they respect the Robots.txt file...some agents are not that respectfull...

try to following:
User-agent: AskBar
Disallow: /

NOTE: I am assuming that the name of the agent above is
AskBar
if not then you need to substitute the name of the agent..
if the crawler is set up to, first, read the directives in the robots.txt file and then proceed the above will notify the bot to not proceed..

Regarding the other 2 you mention...see if you can find the name of the agent in the log string...
For Example, if you are seeing Googlebot in your log file then you would see this string:
64.68.82.172 - - [01/Mar/2004:02:00:29 -0500] "GET /robots.txt HTTP/1.0" 200 473 "-" "Googlebot/2.1 (+http://www.googlebot.com/bot.html)"

The obvious bot name here is "Googlebot" and you may want to determine the location of the name of the other bots by analyzing your properly formatted google log data...

You may have to test some the find the right name to block the critters...

Good luck..

encyclo

11:57 pm on Mar 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you are using Apache, you can use
mod_rewrite
to ban user agents with a particular word in them via .htaccess, eg. from your examples:

Options +FollowSymLinks 
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_USER_AGENT} AskBar [OR]
RewriteCond %{HTTP_USER_AGENT} Hotbar [OR]
RewriteCond %{HTTP_USER_AGENT} FunWebProducts
RewriteRule ^.* - [F]

The above issued an error 403 Forbidden error for all visitors with either "AskBar", "Hotbar" or "FunWebProducts" in the user-agent string. Obviously, you need to make sure they are bots rather than human visitors. Use at your own risk!

keyplyr

6:00 am on Mar 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month




Personally, I wouldn't block any of those 3 UAs. Thousands upon thousands of users have those utilities installed in their browsers and you will be blocking them all.