WP Robots Txt
WP Robots Txt
Description
WordPress, by default, includes a simple robots.txt file that’s dynamically generated from within the WP application. This is great, but how do you easily change the content?
Enter WP Robots Txt, a plugin that adds an additional field to the “Reading” admin page where you can do just that. No manual coding or file editing required!
Simply visit https://your-site.com/wp-admin/options-reading.php and you can control the contents of your https://your-site.com/robots.txt
Installation
- Download the plugin
- Unzip it
- Upload the unzipped folder to
wp-content/pluginsdirectory - Activate and enjoy!
Or you can simply install it through the admin area plugin installer.
Faq
Delete all the content from the Robots.txt Content field and save the privacy options.
Yes. Be careful! That said, robots.txt files are suggestions. They don’t really block bots as much as they suggest that bots don’t crawl portions of a site. That’s why the options on the Privacy Settings page say “Ask search engines not to index this site.”
No. Since WordPress 5.3 that setting adds a noindex meta tag. It does not add Disallow: / to robots.txt. Your saved rules are still served. Add Disallow: / yourself if you want crawlers to skip the site.
WordPress only serves the virtual robots.txt when there is no physical robots.txt file in the site root. Delete or rename that file to use this plugin.
Here is a general guide by Google and here is the WordPress SEO documentation.
Reviews
Works perfectly and effective support!
By olistic on July 27, 2025
The plugin perfectly works. Support is effective and quick!
Doesn't work
By andrewpeterson on April 21, 2025
I followed their instructions and it didn't update the robots.txt file. It would be a great plugin if it worked!
Easy robots.txt edit
By George Kpax (gkpax) on January 7, 2025
Don’t know what WordPress does with robots.txt file and uploading manually to my server does not work. This plug-in fixed it quickly. Highly Recommend!
Simple and works!
By xeniajfp on January 16, 2024
Very simple to use and does what it says.. thanks a lot!!
Ottimo
By Gregorio (guidetutorial) on October 21, 2022
IT just started blocking google
By seamonster124 on January 15, 2019
Good
By Dima Stefantsov on January 15, 2018
Nice plugin
By rpaananen on September 3, 2016
Simple plugin that helped me to fix a js. problem in Google search
Very Useful Plugin
By shivi-gemstone on February 7, 2017
I am using this plugin to overcome my robots.txt problem. This is very useful plugin. http://www.gemstonesprices.in
Changelog
1.3.6
- Compatibility with WordPress 7.1
- Stop HTML-escaping robots.txt output (it is text/plain; this broke URLs with
&) - Store sanitized plain text instead of
esc_html()in the option - Decode legacy HTML entities from older saved content
- Fix default
Disallow/Allowpaths on subdirectory installs (match coreadmin_url()) - Guard sitemap defaults for WordPress 5.3–5.4 and when sitemaps are disabled
- Use
esc_url_raw()for the default Sitemap line - Warn when a physical robots.txt file will override this plugin
- Keep saved rules when search engines are discouraged (WordPress does not add
Disallow: /) - Harden admin and plugin-row markup escaping
- Add
ABSPATHguards on included files
1.3.5
- Compatibility with WordPress 6.8
1.3.4
- Compatibility with WordPress 6.7
1.3.3
- Add Line Break to allow appending more rules. Thanks @flberger
1.3.2
- Add translation template
1.3.1
- Compatibility with WordPress 6.4
- WP Coding Standards compliant
1.3
- Ensure Compatibility with WP v6.3
- Increase PHP minimum required version
1.2
- Update the default robots.txt content
- Include sitemap reference
- Resolve code warnings/errors
- WP Coding Standards compliant
- Ensure Compatibility with WP v6
1.1
- Moved the settings field “officially” to the reading page
- General code clean up
1.0
- Initial version
