SEO

robots.txt for Small Websites: What to Allow and Block

What robots.txt controls, a safe starting file, common mistakes and how to check it. It manages crawling, not privacy.

By Zoqonyx Team · · 1 min read

Person pointing at a MacBook screen
In this article

robots.txt is a small text file that tells crawlers which addresses they may request.

Person pointing at a MacBook screen

A safe starting file

User-agent: *
Allow: /
Disallow: /admin/

Sitemap: https://example.com/sitemap.xml

Create yours with the robots.txt generator.

What to block

Admin areas, internal search results and endless filter combinations. Keep styles and scripts open so pages can be rendered.

AI crawlers

You can allow or block individual crawlers by their names. Allowing them can help assistants read and cite your pages; blocking limits that use for bots that follow the rules.

Mistakes to avoid

  • Disallow: / left over from a staging site
  • Using it to hide private pages, which it does not do
  • Blocking a page that carries a noindex tag, so the tag is never seen

Check it

Open yourdomain.com/robots.txt, then review the robots.txt report in Search Console. Add a sitemap with the XML sitemap generator. Need help with technical SEO? See digital marketing services.

Free tools in this article

Written by Zoqonyx Team, the team at Zoqonyx. Last updated December 1, 2026.

Talk to our team

Tell us what you are building. We reply with questions and next steps.

Get a quote

Need help with this?

Tell us what you are working on and we will reply with suggestions and next steps.

  • hello@zoqonyx.com
  • Tell us about your idea and we will reply with questions. We work remotely with clients in the USA, Europe, the Gulf and Asia.

Or email us at hello@zoqonyx.com