
A robots.txt file tells search engine crawlers which URLs they may access on your site. It exists mainly to manage crawler traffic, and misunderstanding that purpose causes real damage when owners use it as a hiding place.
What it is for
Use robots.txt to reduce load from crawling, to keep unimportant or near-duplicate pages from consuming crawler attention, and to keep media files out of Google Search results where that matters to you.
What it cannot do
Robots.txt is not a mechanism for keeping a web page out of Google. If other pages link to a disallowed URL, Google can still index the address without visiting it, and the result may appear with no description. To keep a page out of search, use noindex or password protection instead.
Crawlers can ignore it
Respectable crawlers obey robots.txt, but the file cannot enforce anything; other crawlers may not comply, and different crawlers interpret the syntax differently. Anything genuinely sensitive belongs behind authentication, not behind a text file.
Think before editing
Blocking scripts or stylesheets that a page needs makes the page harder for Google to understand. Many content management systems expose per-page visibility settings that are safer than hand-editing rules, so check those first and test changes carefully.
Source: https://developers.google.com/search/docs/crawling-indexing/robots/intro. This article combines the linked technical guidance with editorial workflow advice; it is not a certification or a promise of business results.
Explore the Pixeleator portfolio or discuss your website project.