Robots.txt Generator

Easily generate robots.txt files for search engine crawlers

Basic Settings

Search Engine Specific Settings

AI Crawler Settings

When enabled, the following AI crawlers will be blocked:

GPTBot (OpenAI) ChatGPT-User CCBot (Common Crawl) anthropic-ai Claude-Web Google-Extended Bytespider (ByteDance)

Sitemap Settings

Crawl Delay

Generated robots.txt

# robots.txt generated by Blog Tools
# https://example.com/robots.txt

User-agent: *
Allow: /

robots.txt Usage Guide

  • File Location: The robots.txt file must be placed in the root directory of your website. (e.g., https://example.com/robots.txt)
  • Case Sensitivity: The filename must be in lowercase.
  • Application Time: It may take several days for search engines to reflect changes.
  • Note: robots.txt is a recommendation; malicious crawlers may ignore it.
  • Sensitive Information: Protect sensitive data with authentication instead of robots.txt.
Completed!

Complete Robots.txt Guide

robots.txt is a text file that tells search engine crawlers which parts of your website they can crawl. Proper robots.txt configuration is fundamental to SEO.

Why robots.txt is Important

Crawling Control

Control which pages search engines can access.

Reduce Server Load

Save server resources by preventing unnecessary crawling.

Protect Sensitive Info

Block paths you don't want exposed, like admin pages.

Manage AI Crawlers

Control access from AI crawlers like GPTBot and ChatGPT.

Important Notice

robots.txt is a recommendation. Well-behaved crawlers follow it, but malicious crawlers may ignore it. Protect sensitive information with separate authentication.

Key Directives

Directive Description Example
User-agent Specify crawler to apply rules to User-agent: Googlebot
Disallow Path to block from crawling Disallow: /admin/
Allow Path to allow crawling Allow: /public/
Sitemap Notify sitemap location Sitemap: https://example.com/sitemap.xml

robots.txt Writing Tips

  • The file must be located in the root directory (example.com/robots.txt)
  • The filename must be lowercase
  • Including the sitemap URL helps search engines understand your site structure

Related Keywords

robots.txt Robots File Crawler Settings SEO Optimization AI Crawler Block Googlebot