What Is Robots.txt?

A file that tells bots what not to crawl.

Definition

Robots.txt is a text file at the root of a website that tells search engine crawlers which paths they should not crawl. It lives at yourdomain.com/robots.txt and uses simple rules, such as User-agent and Disallow, that well-behaved crawlers such as Googlebot follow voluntarily.

Glossary
Robots.txt
01

Robots.txt explained

Blocking a page in robots.txt stops crawling but does not keep it out of search results, because a blocked URL can still be indexed if other pages link to it. To keep a page out of the index, use a noindex tag and allow crawling so the tag can be seen.

Example: a store adds Disallow: /cart/ and Disallow: /checkout/ so crawlers do not spend time on pages that have no value in search.

How to check it: open /robots.txt in a browser. In Google Search Console, the robots.txt report shows the file Google fetched and any errors, and URL Inspection tells you whether a specific URL is blocked.

Common mistake: leaving Disallow: / in place after launch. That single line, often added on a staging site, blocks crawlers from the whole website.

For a review of your crawl rules, see our technical SEO service.

Put this knowledge to work

We help businesses apply these ideas with hands-on implementation.

Let's discuss your project

Tell us what your business does, what you want to improve and which service you are considering. If you are not sure which service you need, share the current problem instead.

Since 2020Experience
2023Founded
AhmedabadBased in

Send your project details

Send inquirySend on WhatsApp insteadYour details are emailed to VK Digital Solution and used only to reply to your inquiry. You can send them on WhatsApp instead. See our privacy policy.
CallWhatsApp