sandywp / plugins / wp-robots-txt
WP Robots Txt
WP Robots Txt Allows you to edit the content of your robots.txt file.
Ready in seconds.
v1.3.6 40,000+ installs WP 5.3.0+ PHP 7.0+

What you get inside
1 screen-
A view of the admin option
About this plugin
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
Questions
- I totally screwed up my `robots.txt` file. How can I restore the default version?
Delete all the content from the Robots.txt Content field and save the privacy options.
- Could I accidently block all search bots with this?
Yes. Be careful! That said,
robots.txtfiles 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.”- Does discouraging search engines change robots.txt?
No. Since WordPress 5.3 that setting adds a
noindexmeta tag. It does not addDisallow: /torobots.txt. Your saved rules are still served. AddDisallow: /yourself if you want crawlers to skip the site.- Why is my edited robots.txt not used?
WordPress only serves the virtual
robots.txtwhen there is no physicalrobots.txtfile in the site root. Delete or rename that file to use this plugin.- Where can I learn more about `robots.txt` files?
Here is a general guide by Google and here is the WordPress SEO documentation.
sandywp / also on the shelf
Try another plugin
4.4 · 100K+ installs
Take control of your WordPress core XML Sitemap and add a Google News Sitemap.
4.3 · 40K+ installs
Virtual Robots.txt automatically creates a robots.txt file for your site. Your robots.txt file can be easily edited from the…
4.8 · 10K+ installs
Adds a custom set of <meta> tags to the <head> section of all posts & pages.
Spin up a real WordPress site in seconds.
Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.