Admin Robots.txt Editor

Mô tả

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.txt file in the WordPress installation root.
  • WordPress’s built-in robots_txt filter when a physical file does not exist.

Features:

  • Edit and save robots.txt from the WordPress dashboard.
  • Reset the file to a sensible WordPress default.
  • Uses the official WordPress robots_txt filter.
  • 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.

Ảnh màn hình

Cài đặt

  1. Upload the plugin ZIP through Plugins > Add New > Upload Plugin, or extract it into /wp-content/plugins/admin-robots-txt-editor/.
  2. Activate the plugin.
  3. Open Robots.txt in the WordPress admin sidebar.
  4. Edit the content and click Save robots.txt.
  5. Verify the public file at https://example.com/robots.txt.

Hỏi đáp

What happens if a physical robots.txt already exists?

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.

Does it require a sitemap plugin?

No. The default content uses WordPress’s standard /wp-sitemap.xml URL. SEO plugins can replace or extend the robots.txt output as needed.

Where can I find the editor?

Open Robots.txt in the WordPress admin sidebar.

Is it compatible with current WordPress?

Version 1.0.1 follows the WordPress plugin coding and security practices and uses the official robots_txt API.

Đánh giá

Đọc tất cả 3 đánh giá

Người đóng góp & Lập trình viên

“Admin Robots.txt Editor” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

“Admin Robots.txt Editor” đã được dịch qua 1 ngôn ngữ. Cảm ơn những người tham gia dịch vì đóng góp của họ.

Dịch “Admin Robots.txt Editor” sang ngôn ngữ của bạn.

Muốn tham gia phát triển?

Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.

Nhật ký thay đổi

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.