Mobile app version of vmapp.org
Login or Join
Sue5673885

: What user agent should I set? There is Ask bot, which sets this header: Mozilla/2.0 (compatible; Ask Jeeves/Teoma) Considering this, I have the following questions: If I'm writing a web crawler

@Sue5673885

Posted in: #UserAgent #WebCrawlers

There is Ask bot, which sets this header:

Mozilla/2.0 (compatible; Ask Jeeves/Teoma)


Considering this, I have the following questions:


If I'm writing a web crawler named Goofy, what user agent should I use?
What is the difference if I put Mozilla/2.0 or Mozilla/5.0 ?


Any other suggestions about how should I format my user agent to comply to the current standards are more than welcome.

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Sue5673885

3 Comments

Sorted by latest first Latest Oldest Best

 

@Samaraweera270

I'm the primary designer and author of a fairly large-scale web crawler (see metadatalabs.com/mlbot). What you're asking touches on a topic that's very important to us--perhaps the most important part of running a crawler: that of politeness.

First: the reason for the "Mozilla" thing is to tell the site what your browser capabilities are. If your bot isn't trying to act like a browser, there's no particular reason you need to include the "Mozilla" thing.

As for your user agent string and other politeness-related items:


Select a name that you know nobody else is using. I suspect that if you use "Goofybot", you'll be fine. But I'd check it out to be sure.
Your user agent string should include a link to more information about the bot. For example, our string reads "MLBot (www.metadatalabs.com/mlbot)".
Make sure that if somebody searches for "Goofybot", that page is high (preferably first) in the search results.
Your page about the bot should say what you're using the information for, what IP addresses you crawl from, and include a way for people to contact you about problems with the bot.
You should respond to any questions or complaints quickly, using the "customer is always right" philosophy. Remember, if your bot caused a problem that this person is complaining about then it probably caused problems on a dozen other sites that nobody complained about. They either didn't see the problems or they just put a block on your IP address.
Your should build in the facility to prevent your bot from accessing a particular domain name. Some people won't want you to crawl at all and don't have the access or technical ability to create a robots.txt or block in .htaccess. We found that this ability lets us tell somebody, "We're sorry MLBot caused a problem. We have instructed it never to crawl your site again." Perhaps not surprisingly, that calms people down very quickly.
If you don't already respect robots.txt, do it. Nothing will get you a bad reputation faster than ignoring robots.txt.


Wow. That went on longer than I expected. In the past four years, I've made every one of those mistakes I allude to above, and others besides. We found, however, that if we're open about what we're doing and communicate honestly (including posting information about mistakes before we get complaints), the majority of Webmasters view us as a good Internet citizen.

10% popularity Vote Up Vote Down


 

@Si4351233

Mozilla/2.0 and Mozilla/5.0 are both references to the Mozilla browser. It has become largely meaningless, with many crawlers using it, but should tell the site to treat your crawler as it would any random user browsing with a regular browser.

It is however good etiquette to include an URL linking to a page about who you are and why you are crawling in the following section. Ask Jeeves can get away with just the name, but you should include an URL.

E.g.

Mozilla/5.0 (compatible; example.org/)

This will allow web admins to figure out why you are crawling their site and also to contact you if there is a problem with how your crawler is behaving.

10% popularity Vote Up Vote Down


 

@YK1175434

I think the following links can help:

www.user-agents.org/ http://en.wikipedia.org/wiki/User_agent#Format tools.ietf.org/html/rfc1945#section-10.15

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme