Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The challenges to OSS developers are numerous. First of all, many popular sites on the internet block crawlers other than Google and Bing, because only those ones seem to matter to their business, and any small upstart would be assumed to be a dodgy bot. Secondly, Google amasses the database it has only with vast data centers, incredible amounts of bandwidth, and power requirements unavailable to a startup.


Just use the string 'googlebot' in your user agent.

After all, Google uses 'Mozilla' in their Google Bot user agent String for similar reasons - because sites might expect it.



That's interesting. I know a few companies that don't run that check but instead just go off the user agent.


How would anyone block a crawler? A crawler is just a headless browser.



Note that robots.txt is a hint to well-behaved crawlers, not blocking them in any regard.

You can block crawlers if you can identify them, but reliably identifying them is hard.


We should probably classify the crawler identifying problem as impossible and move along. Less resources wasted and easier automation for everyone. Assuming a crawler is malicious is narrow-minded.



This helps to verify that a bot that announces itself as google bot is indeed a google bot. It doesn’t help identify a bot that pretends to be a user/browser.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: