All free tools

Free tool

WordPress

WordPress Robots.txt Generator

Build a WordPress robots.txt with wp-admin rules, a sitemap line, and optional extra Disallow paths. Copy it to the site root.

Runs in your browser — your data stays on your device

Free tool
robots.txt
# Generated by Binary Tech Institute WordPress Robots.txt Generator
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Disallow: /?s=
Disallow: /search/
Disallow: /cgi-bin/

Sitemap: https://example.com/sitemap_index.xml
  • Place robots.txt at the site root (https://example.com/robots.txt). WordPress can also serve a virtual file; a physical file wins.
  • Blocking /wp-admin/ in robots.txt hides it from crawlers. It is not a login firewall. Keep a strong password and 2FA.

robots.txt is a crawl hint, not a lock. WordPress site owners still get two things wrong: they block all of /wp-admin/ without allowing admin-ajax.php, and they forget the Sitemap line that Google Search Console already expects. This free WordPress robots.txt generator writes a conservative file for technical SEO: Disallow wp-admin with Allow admin-ajax, optional search-URL blocks, and a sitemap URL you paste from Yoast, Rank Math, or core /wp-sitemap.xml. Use it without installing another plugin.

How to use the WordPress Robots.txt Generator

  1. 1

    Paste your sitemap URL, usually https://your-domain/sitemap_index.xml or /wp-sitemap.xml.

  2. 2

    Keep Disallow /wp-admin/ and Allow admin-ajax.php unless you have a reason to change them.

  3. 3

    Copy the file to the site root as robots.txt, then test the URL in a browser and in Google Search Console.

Why robots.txt still matters for WordPress SEO

A missing sitemap line slows discovery. A Disallow on /wp-admin/ without admin-ajax can break front-end features that crawlers hit. Blocking /wp-admin/ also does not hide wp-login.php from attackers. We teach robots.txt as a crawl budget and politeness file, then put real protection in .htaccess, 2FA, and updates. That split is what separates technical SEO from a false sense of security.

WordPress robots.txt generator with examples

With the defaults you get User-agent: *, Disallow: /wp-admin/, Allow: /wp-admin/admin-ajax.php, search Disallows, and Sitemap: https://example.com/sitemap_index.xml. Replace the example host with your domain before you upload the file.

Guides and next steps

Privacy note

Generation runs in your browser. We do not crawl your site.

Frequently asked questions

Ready to go beyond free tools?

Live mentor-led courses turn calculator practice into real networking and IT skill.