When I built my pay calculator site, robots.txt was one of those files I nearly skipped. It is a plain text file, it does no maths, and nobody ever sees it. Then I realised it is the first thing a search crawler reads, and getting it wrong means pages I spent hours on never get found at all.
What robots.txt actually does
A crawler asks for /robots.txt before it touches anything else. The file tells it which paths it may crawl and which it should leave alone. It is a request, not a lock β well-behaved crawlers obey it, and bad bots ignore it entirely. So it is a signpost for Google and Bing, not a security fence. Nothing in it keeps a page private.
That distinction shaped every line I wrote. If a page should not be seen by anyone, it does not belong on a public site at all.β¦