What is Robots.txt Generator?
A robots.txt file is a plain text file placed at the root of your website that tells search engine crawlers which pages or sections they are allowed or disallowed from accessing. The Robots.txt Generator by SlapMyWeb lets you visually build this file without memorizing the syntax. You can add multiple user-agent blocks, set allow/disallow rules per path, configure crawl delays, and include your sitemap URL -- all with one-click presets for common configurations like blocking AI bots (GPTBot, ClaudeBot, Bytespider, CCBot) from scraping your content.
How to Use Robots.txt Generator
- 1
Choose a preset or start from scratch
Click "Allow All", "Block All", or "Block AI Bots" for instant configurations, or build custom rules manually.
- 2
Configure user-agent rules
Set the user-agent name (e.g., Googlebot, GPTBot, or * for all bots), then add Allow and Disallow paths for each agent.
- 3
Add sitemap and crawl delay
Enter your sitemap URL so crawlers discover all pages. Optionally set a crawl delay to protect your server from aggressive bots.
- 4
Copy and upload
Copy the generated robots.txt content and save it as a file named robots.txt in your website root directory.
Features
- Visual editor with multiple user-agent blocks
- One-click presets: Allow All, Block All, Block AI Bots
- Block GPTBot, ChatGPT-User, ClaudeBot, Bytespider, CCBot
- Add unlimited Allow and Disallow path rules
- Sitemap URL inclusion for crawler discovery
- Configurable crawl delay per user-agent
- Real-time preview as you edit
- One-click copy to clipboard
Related Tools
Meta Tag Generator
Create perfect SEO meta tags with OG + Twitter cards. Live character counters.
Meta Tag Analyzer
Analyze any URL's meta tags, OG tags, Twitter cards and SEO elements with scoring.
Open Graph Tag Generator
Generate Open Graph meta tags with live Facebook and LinkedIn preview.
Open Graph Checker
Check any URL's Open Graph tags and preview how links appear on social media.
Twitter Card Generator
Generate Twitter Card meta tags with live preview for summary and large image cards.
Robots.txt Tester
Paste your robots.txt and test if a URL is crawlable by any user agent.