AioGalaxy WebTools
SEO & Crawler Directives Studio

Free Online Robots.txt Generator

Choose which crawlers may visit which paths, add your sitemap and copy the finished robots.txt file.

Googlebot, Bingbot and more Allow & Disallow rules Sitemap & crawl-delay Runs in your browser
Global Configuration
Bot Specific Rules
One-Click Presets

Do not block the AdSense bot (Mediapartners-Google) if you want Google AdSense to review your pages or show ads on them.

Live robots.txt Preview Updates as you type

                
Robots.txt Output

Upload the file to the root of your domain so it opens at yourdomain.com/robots.txt. After uploading, open it in your browser and check it in the robots.txt report in Google Search Console.

How to Use Robots.txt Generator?

Step 01

Set Sitemap & Defaults

Enter your XML sitemap URL and choose default bot access (Allow or Disallow).

Step 02

Configure Specific Rules

Add Allow or Disallow path rules for all crawlers or for a specific one such as Googlebot or Bingbot.

Step 03

Deploy to Root

Copy the text and upload it as robots.txt in your domain root. The tool does not check your paths, so test the result before you rely on it.

Complete Guide

What robots.txt does and does not do

robots.txt is a plain text file in the root of a website. It tells crawlers which paths they may visit, using User-agent, Allow and Disallow lines. Well-behaved crawlers such as Googlebot and Bingbot follow it, and others may ignore it. It controls crawling, not indexing, and it is not a security tool, because the file is public.

Core Syntax Rules & Best Practices

  • User-agent: * : Designates fallback rules applicable to all web crawlers.
  • Disallow: Asks crawlers to stay out of a path, such as /wp-admin/ or a cart page. Listing a private folder here also tells everyone that it exists, so do not rely on it for secrets.
  • Allow: Makes an exception inside a blocked folder. Do not block CSS or JavaScript files that your pages need, because Google uses them to render the page.
  • Sitemap: Points crawlers to your XML sitemap. It must be a full URL.
  • Crawl-delay: Bing and some other crawlers honor it. Google ignores it.

Frequently Asked Questions

Where should the robots.txt file be uploaded on a website server?

Put it in the root of your domain so that it opens at https://yourdomain.com/robots.txt. Crawlers only look for it there. A robots.txt file inside a folder is ignored, and each subdomain needs its own file.

Does disallowing a page in robots.txt hide it from public users?

No. Robots.txt is a polite request to crawlers that choose to follow it, and anyone can read the file. A blocked URL can still appear in search results if other sites link to it. To keep a page private use a password or server authentication, and to keep it out of Google use a noindex tag on a page that crawlers are allowed to open.

Explore Related SEO Tools

Popular