Menu

robots.txt for a calculator site: what I let search engines crawl
πŸ“°

robots.txt for a calculator site: what I let search engines crawl

DEV Community: javascriptΒ·Mobeen AhmedΒ·3 days ago
#VaVmiOZK
#devtojavascript#devto#dev#mon#robots
Long article (660 words) β€” no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.