Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Guidelines for good webcrawler 'Etiquette'

Tags:

web-crawler

I'm building a search engine (for fun) and it has just struck me that potentially my little project might wreak havok by clicking on ads and all sorts of problems.

So what are the guidelines for good webcrawler 'Etiquette'?

Things that spring to mind:

  1. Observe Robot.txt instructions
  2. Limit the number of simultaneous requests to the same domain
  3. Don't follow ad links?

Stopping the crawler from clicking on ads - This one is particularly on my mind at the moment... how do i stop my bot from 'clicking' on ads? if it is going straight to the url in the ad is it counted as a click?

like image 846
Andrew Harry Avatar asked Sep 05 '25 01:09

Andrew Harry


2 Answers

You don't read only the robots.txt instruction. You should also see the meta tags with noindex and nofollow.

About the ad question, I'm not sure, but I guess if you just read the links and then some other time enter the page, the entered page will have no info on how you got that address, and can't charge the site for the "pseudoclick"

like image 56
Samuel Carrijo Avatar answered Sep 07 '25 18:09

Samuel Carrijo


Don't follow links marked as rel="nofollow".

Also, you don't have to worry about ads. If you spider only HTML text of a page, then in most cases you won't get ad links there - they are generated on client using javascript.

like image 39
Michał Chaniewski Avatar answered Sep 07 '25 17:09

Michał Chaniewski