Robots.txt Generator - DigiKitApp
Generate a robots.txt file for search engine bots.
When should you use this?
Use this when you need to create a robots.txt file from scratch, telling search engine bots which parts of your site not to crawl.
When shouldn't you use this?
If you want a page removed from search results entirely, robots.txt isn't enough; you need a noindex tag on the page itself, robots.txt only blocks crawling.
Want to see at a glance how well your site reads for search engines and AI bots (ChatGPT, Claude, Perplexity)? Try our SEO & GEO Analysis tool.
Step-by-step
- Enter the directory you want bots to skip in the Disallow path field. It should be the part after your domain and start with a slash, for example /admin/ or /cart/.
- If your site has a sitemap, paste its full address into Sitemap URL (optional), starting with https://.
- Click Run and review the generated robots.txt content.
- Save the text as a plain file named robots.txt and upload it to your site's root. It must open at yourdomain.com/robots.txt.
Example
You run a small online shop, and internal search results under /search/ create thousands of near-identical URLs. They help visitors but add nothing for search engines. Putting /search/ in the Disallow path and adding your sitemap address gives you a short file that points crawlers toward product and category pages instead. A few days after uploading it, check the crawl stats in Search Console to confirm bots are staying out of that folder. Keep in mind that if those pages were already indexed, robots.txt won't pull them from results right away; it only stops them from being crawled again.
What does robots.txt do?
robots.txt is a text file placed in your site's root that tells search engine bots which parts they may crawl. The main directives are User-agent (which bot is addressed), Disallow (a path not to crawl), Allow (a permitted path) and Sitemap (the address of your sitemap). The file must be at the root of the domain (for example /robots.txt).
Common robots.txt mistakes
- Disallow does not remove a page from the index; it only blocks crawling. To remove from the index use noindex.
- robots.txt is not a security measure; the file is public and can reveal hidden paths.
- A wrong “Disallow: /” blocks crawling of the whole site; check before publishing.
- Add a Sitemap line so bots can find your sitemap easily.
Things to keep in mind
- A line reading Disallow: / blocks your entire site. Forgetting to remove it when a staging site goes live is a common and costly mistake.
- Anyone can read robots.txt. Listing a hidden admin URL there advertises it; protect private areas with a password instead.
- Paths are case-sensitive. Blocking /Admin/ leaves /admin/ open.
- Don't block folders holding your CSS and JavaScript. If Google can't render the page properly, it can't judge the content properly either.
Frequently asked questions
Does this tool directly affect my Google ranking?
No, these are analysis/generation aids; actual ranking depends on many factors. But correct metadata and structured data helps search engines understand your page better.
How should I use the results?
You can paste the generated code/text directly into your site's relevant HTML section (e.g. <head>) or your CMS's SEO settings.
Do you store my data?
No, the URL/text you enter isn't stored anywhere, it's only processed in your browser.