Admin Robots.txt Editor
Admin Robots.txt Editor
Description
Admin Robots.txt Editor provides a secure WordPress admin interface for editing the site’s robots.txt file.
The plugin supports both:
- A physical
robots.txtfile in the WordPress installation root. - WordPress’s built-in
robots_txtfilter when a physical file does not exist.
Features:
- Edit and save
robots.txtfrom the WordPress dashboard. - Reset the file to a sensible WordPress default.
- Uses the official WordPress
robots_txtfilter. - Uses WordPress nonces and capability checks.
- Uses the WordPress filesystem API with a controlled fallback.
- Provides a default WordPress sitemap URL.
- Prevents a public robots file from allowing crawling when WordPress search-engine visibility is disabled.
Installation
- Upload the plugin ZIP through Plugins > Add New > Upload Plugin, or extract it into
/wp-content/plugins/admin-robots-txt-editor/. - Activate the plugin.
- Open Robots.txt in the WordPress admin sidebar.
- Edit the content and click Save robots.txt.
- Verify the public file at
https://example.com/robots.txt.
Faq
The editor reads and updates the physical file. A physical file is normally served directly by the web server, so the WordPress robots_txt filter is used when a physical file is not present.
No. The default content uses WordPress’s standard /wp-sitemap.xml URL. SEO plugins can replace or extend the robots.txt output as needed.
Open Robots.txt in the WordPress admin sidebar.
Version 1.0.1 follows the WordPress plugin coding and security practices and uses the official robots_txt API.
Reviews
Simple and effective!
By Mukesh Parihar (mukeshparihar) on January 7, 2026
Editing robots.txt has never been easier. Lightweight, intuitive, and works flawlessly every time. Highly recommended!
Super handy and easy to use!
By Pravin Karmur (pravin1996) on January 7, 2026
This plugin makes editing the robots.txt file a breeze.
Clean UI, no fuss — perfect for beginners and pros alike. Works exactly as expected!
Changelog
1.0.1
- Updated compatibility information for WordPress 7.0.4.
- Improved robots.txt file reading and writing.
- Added safer filesystem handling and file locking.
- Respected WordPress public/private site visibility in virtual robots.txt output.
- Improved admin form actions, escaping, accessibility, and documentation.
- Corrected documentation to match the actual admin menu location.
1.0
- Initial release.
