SEO issue explained

No robots.txt file

Your site has no robots.txt file (the address returns 404). Search engines then treat the whole site as open to crawling.

A friendly robot examining a web page with a magnifying glass, surrounded by charts and check marks

What this issue means

ROC SEO adds a notice under check T5 when /robots.txt returns 404. That is not an error: a missing file means "no restrictions".

Why it matters

Many small sites are fine without one. A robots.txt becomes useful when you want to keep crawlers out of areas such as internal search results or admin pages, decide which AI crawlers may read your content, or point every crawler to your sitemap.

How to fix it

  1. Decide whether you need rules. If not, a simple file is still a good place for your sitemap.
  2. Create a plain text file at the root of your site, https://example.com/robots.txt.
  3. A safe start: User-agent: *, Disallow: (empty, allows everything), and Sitemap: https://example.com/sitemap.xml, each on its own line.
  4. Test rules before you publish them with the robots.txt tester, and see which AI crawlers are allowed with the AI bots checker.

Find it on your own site

The free ROC SEO extension checks the page you are on for this and more than 60 other issues, each with a fix, and the site crawler checks up to 1,000 pages for free.

Related issues

Frequently asked questions

Is a missing robots.txt bad for SEO?

No. Google crawls the whole site normally. You only need one if you want rules or want to list your sitemap.

Can robots.txt keep a page out of Google?

Not reliably. It stops crawling, but a blocked page can still be indexed from links. Use noindex to keep a page out.

Where must robots.txt be?

At the root of the host, such as https://example.com/robots.txt. Each subdomain needs its own.

Get in touch

Questions, ideas or a partnership?

Write to us about anything: a guest post or publishing on our blog, a partnership, an update you would like to see, a problem with the extension, billing or a refund. A person reads every message and replies by email.

Prefer email? Write to support@getrocseo.com.