283 points · by r_singh · 4y ago · 167 comments
Webmasters also put highly specific URLs they don't want the world to see in robots.txt. Also not a great idea.
I serve my robots.txt files with Transfer-Encoding: gzip and Content-Encoding: gzip, chunked and then just serve a two layered 10G gzip bomb (240kB file size) instead.
Can recommend. Works pretty often.
BTW, how's your stealth browser project coming along? (I'd go look but I'm in a weird situation right now where I can't view most of the web. It's browser related so maybe this would amuse you: I'm running Firefox 91.5.1esr on FreeBSD from the official pkg. The vast majority of HTTPS sites give a "Your connection is not secure" error (Error code: NS_ERROR_NET_INADEQUATE_SECURITY) with no recourse (no button to let you make an exception or anything like that. It literally says, "The website administrator will need to fix the server first before you can visit the site.") The fix is to disable SPDY for HTTP2 connections. That works, but then FF crashes (with a core dump, hello FreeBSD) within ~10 seconds no matter what I do. There are a few clues, but I'm just not interested in shaving this yak. Frankly, I'm shopping for a new browser as I find the situation ridiculous. Your project seems way more interesting than what FF has become.)
Is there a way to make it so it doesn't outright make processes crash or lock up, but instead really slow them down / hang them up for a long time?
I can confirm; I tried to helpfully put a bunch of addresses which would be pointless for a web crawler to crawl in there (links to the login page, etc), but as soon as you say "don't" somebody's gotta go find out why.
I like the idea of putting gzip bombs at commonly-scanned URLs.
Even stranger things can be found in a `humans.txt`[0] file!
That’s not really how it works now. Google pretty much ignores robots.txt now and crawls your site anyway.
They can and will crawl even if you say no, they've officially said so as well in their docs.
# comments
// comments
<!-- comments -->
/* comments */
plain text lines as comments
TeX-markup
script tags
HTML
PHP code
Whatever this is: https://www.costablancaworld.com/robots.txt
search-engine specific directives (Yandex has a few strange ones)
Somebody screwed up and made their robots.txt in a rich-text editor like wordpad.
That's an RTF file that was saved as a TXT (without removing formatting)...
Ah the never ending joy I get by putting a 1GB file as the robots.txt or even having a 1GB `favicon.ico` file.
Wired even wrote an awful article about it at the time: https://www.wired.com/2010/08/robot-laws/
Absolutely delighted people remember it 12 years later.
Honeypot or snarky?
Disallow: /harming/humans
Disallow: /ignoring/human/orders
Disallow: /harm/to/self
> First Law. A robot may not injure a human being or, through inaction, allow a human being to come to harm.> Second Law. A robot must obey the orders given it by human beings except where such orders would conflict with the First Law.
> Third Law. A robot must protect its own existence as long as such protection does not conflict with the First or Second Law.
https://en.wikipedia.org/wiki/Three_Laws_of_Robotics
If you ever get the chance to read a bit of Asimov, I highly recommend it. I'm particularly fond of his Foundation series.
1) don't give a robot a gun
2) don't teach it how to put more bullets into gun after breaking #1
3) don't teach it how to make bullets after breaking #2
3a) don't give it your amazon API keys or other credit card info
(edited for formatting)># unless they're feeding search engines.
>[disallows UbiCrawler, DOC and zao]
Anyone understand this bit? They are obedient spiders yet are disallowed because of purpose? Are these obedient but still overly intensive spiders?
Everyone Loves Rodrigo
Google, facebook and bbc's are surprisingly boring :)
Edit: I've now noticed the disallow directive for other countries specifically targeted for Chinese spiders.
It makes sense considering they have this: https://purpose.nike.com/statement-on-xinjiang
I see the Chinese spiders are only allowed on the /cn/ directory, while disallowed from the root (/).
Another thing I find mildly strange is that the help for certain countries is restricted. This is not what robots.txt should be used for, and it creates incentive for bots to disregard robots.txt.
It seems that they did exist, but moved to specific TLDs (like for Brazil, https://www.nike.com.br). Lazy that they didn't redirect all help files to the correct location though.
https://www.checkbot.io/robots.txt
Also, it's a really common misunderstanding that robots.txt can be used to keep pages out of search results. You need to use noindex meta tags or noindex headers for that. Robots.txt tells crawlers which pages they can't fetch, but they're still allowed to include those pages in search results if they want.
Why is only poland blocked for all robots? Why is there no /deutchland?
Seems that Bloomberg hosts something for the Polish, but I'm not sure what.
If you also know why we're making some basic mistakes here, especially apply here.
Much better to use x-robots noindex, nofollow for pages you don't want to be in the public domain.
https://developers.google.com/search/docs/advanced/crawling/...
I think it's play on the Nike's famous slogan "Just do it".
I’m using Safari on iOS 15.2.1, running on an iPhone X.
I'd be interested in browsing these pages.
robots.txt does nothing for the bad actors, but for grey actors it's a bit more complicated as they can move from "grey" to "good". Adding something for that in robots.txt in addition to some other limits (if needed) can be useful.
I'm not even trying to read their files at all, just to check whether my link is 404. Good on W3C for respecting standards, but this means I just have to copy every one of those links from the report into my address bar, like a robot, to check them...