Get a Quote
728×90 Top Ad Banner
Home / SEO Tools / Website Management Tools / Robots.txt Generator

Robots.txt Generator

Generate a properly formatted robots.txt file to control how search engines crawl your website. Block bad bots, protect private pages and improve crawl efficiency.

100% Free Instant Results No Login Required Website Management Tools

Quick Start Templates

Click to auto-fill
🌐
Standard Website
Basic rules for any website — allows all bots, blocks admin & login pages
🛒
eCommerce Store
WooCommerce/Shopify — blocks cart, checkout, account and search results
📝
WordPress Blog
WordPress-optimised — blocks wp-admin, wp-includes, plugin files
🔒
Maximum Privacy
Blocks all bots from everything — use only if site is not for indexing
🚀
SEO Optimised
Allows all good bots, blocks bad scrapers, sets crawl-delay for efficiency
🏗️
Coming Soon
Blocks all bots except Google for a site under construction

Templates auto-fill all settings below. Customise before generating.

Step 1 — General Settings

Step 2 — Block Bad Bots & Scrapers

Click bots to block
AhrefsBot
Ahrefs SEO scraper — may steal your content data
SemrushBot
SEMrush crawler — competitor intelligence bot
MJ12bot
Majestic SEO bot — aggressive link scraper
DotBot
Moz DotBot — can cause high server load
BLEXBot
Backlink scrapers — steals your link data
Baiduspider
Chinese search engine — usually irrelevant for India
YandexBot
Russian search engine — low value for Indian sites
SeznamBot
Czech crawler — no value for Indian websites
PetalBot
Huawei Petal Search — minimal traffic for India
DataForSeoBot
Data scraper — steals SEO & keyword data
Serpstatbot
Serpstat crawler — competitor analysis bot
Bytespider
TikTok/ByteDance bot — aggressive scraper
CCBot
Common Crawl — used for AI training datasets
GPTBot
OpenAI ChatGPT training crawler
anthropic-ai
Anthropic Claude training crawler
Google-Extended
Google Bard/AI training — separate from search

Step 3 — Block Private Pages & Folders

Common Pages to Block
Custom Disallow Paths
Custom Allow Paths (Override blocks above)

Step 4 — Custom Bot Rules

Advanced

Add specific rules for individual bots — useful for giving Googlebot extra access while restricting others.

Step 5 — Generate robots.txt

How to Use Your robots.txt

1

Use the form above to configure your robots.txt settings. Start with a Quick Template that matches your website type — WordPress, eCommerce, or standard website.

2

Click "Download robots.txt" to save the file. The file must be named exactly robots.txt — lowercase, no spaces.

3

Upload robots.txt to your website's root folder (where index.php is located). On Hostinger: hPanel → File Manager → public_html → Upload.

4

Visit https://www.yoursite.com/robots.txt — you should see the text file in your browser.

5

Open Google Search Console → Settings → robots.txt Tester → paste your URL and test if Google can read it correctly.

6

Your robots.txt should reference your sitemap.xml URL so Google can find all your pages. We've added this automatically if you provided your sitemap URL.

Frequently Asked Questions

What is a robots.txt file?

A robots.txt file is a simple text file that tells search engine crawlers (like Googlebot) which pages or sections of your website they can or cannot visit. It's placed in the root of your website and is the first file crawlers look for.

Does robots.txt hide pages from Google?

No! robots.txt only prevents crawlers from visiting pages — it doesn't hide them from search results. For pages you truly want hidden from search results, use the noindex meta tag instead. Disallowed pages can still appear in Google if other sites link to them.

Should I block social media bots?

Generally no — Facebook, Twitter, LinkedIn bots read your pages to generate preview cards when someone shares your link. Blocking them means no rich previews when your content is shared on social media.

What happens if I block Googlebot?

Your entire website will stop being indexed by Google. Never add "Disallow: /" under "User-agent: Googlebot" unless you intentionally want your site removed from Google Search.

How often does Google read robots.txt?

Google recrawls your robots.txt every 24 hours typically. Changes take effect within 1-2 days. If you make urgent changes, you can request a recrawl via Google Search Console.

Is robots.txt required for SEO?

robots.txt is not required but is highly recommended. Without it, crawlers will try to access every page including admin panels, checkout pages and private areas — wasting your crawl budget on unimportant pages.

robots.txt Best Practices

  • Always test your robots.txt before going live
  • Never block CSS/JS files — Google needs them to render your site
  • Add your sitemap.xml URL at the bottom
  • Block /wp-admin/ but allow /wp-admin/admin-ajax.php
  • Use Disallow: / only for maintenance mode
  • Crawl-delay of 5–10s reduces server load
  • Block AI training bots if you don't want your content used
  • Verify with Google Search Console after uploading

Live Preview


    
🚀

Need a Fully SEO-Ready Website?

We set up robots.txt, sitemap, schema markup and everything else from day one.

Get Free Quote WhatsApp Now
728×90 — Footer Ad Banner