Title: Virtual Robots.txt
Author: Marios Alexandrou
Published: <strong>13 มิถุนายน 2009</strong>
Last modified: 29 ธันวาคม 2025

---

Search plugins

![](https://ps.w.org/pc-robotstxt/assets/banner-772x250.png?rev=1391109)

![](https://ps.w.org/pc-robotstxt/assets/icon-256x256.png?rev=1391109)

# Virtual Robots.txt

 By [Marios Alexandrou](https://profiles.wordpress.org/marios-alexandrou/)

[Download](https://downloads.wordpress.org/plugin/pc-robotstxt.zip)

 * [Details](https://th.wordpress.org/plugins/pc-robotstxt/#description)
 * [Reviews](https://th.wordpress.org/plugins/pc-robotstxt/#reviews)
 *  [Installation](https://th.wordpress.org/plugins/pc-robotstxt/#installation)
 * [Development](https://th.wordpress.org/plugins/pc-robotstxt/#developers)

 [Support](https://wordpress.org/support/plugin/pc-robotstxt/)

## Description

Virtual Robots.txt is an easy (i.e. automated) solution to creating and managing
a robots.txt file for your site. Instead of mucking about with FTP, files, permissions..
etc, just upload and activate the plugin and you’re done.

By default, the Virtual Robots.txt plugin allows access to the parts of WordPress
that good bots like Google need to access. Other parts are blocked.

If the plugin detects an existing XML sitemap file, a reference to it will be automatically
added to your robots.txt file.

## Installation

 1. Upload pc-robotstxt folder to the `/wp-content/plugins/` directory
 2. เปิดใช้ปลั๊กอินผ่านทางเมนู ‘ปลั๊กอิน’ ในเวิร์ดเพรส
 3. Once you have the plugin installed and activated, you’ll see a new Robots.txt menu
    link under the Settings menu. Click that menu link to see the plugin settings page.
    From there you can edit the contents of your robots.txt file.

## FAQ

### Will it conflict with an existing robots.txt file?

If a physical robots.txt file exists on your site, WordPress won’t process any request
for one, so there will be no conflict.

### Will this work for sub-folder installations of WordPress?

Out of the box, no. Because WordPress is in a sub-folder, it won’t “know” when someone
is requesting the robots.txt file which must be at the root of the site.

### Does this plugin modify individual posts, pages, or categories?

No it doesn’t.

### Why does the default plugin block certain files and folders?

By default, the virtual robots.txt is set to block WordPress files and folders that
don’t need to be accessed by search engines. Of course, if you disagree with the
defaults, you can easily change them.

## Reviews

![](https://secure.gravatar.com/avatar/d9d94572a269fd74e0a1458c8388cb68eef1000f9a89c19d148f30557612fa71?
s=60&d=retro&r=g)

### 󠀁[This plugin is working great for me](https://wordpress.org/support/topic/this-plugin-is-working-great-for-me/)󠁿

 [commexjimmy](https://profiles.wordpress.org/commejimmy/) 17 มกราคม 2026

I have used this plugin for many years and never had a problem with it. So with 
that said, I do highly recommend it.

![](https://secure.gravatar.com/avatar/e14f93b5de098c0842acfda38d2ad517b107a3cf1cc6080a48c43de76029a3d0?
s=60&d=retro&r=g)

### 󠀁[Doesn’t seem to work as described](https://wordpress.org/support/topic/doesnt-seem-to-work-as-described/)󠁿

 [treysuttle](https://profiles.wordpress.org/treysuttle/) 19 กันยายน 2023 4 replies

I had an issue that I believed was being caused by the plugin but the plugin author
was very quick to help and clear up the issue. Great and helpful customer service–
thanks!

![](https://secure.gravatar.com/avatar/12f9e8008fa418eff08f41e0aa74c735e81ad06ed5a3593670e6ff2ea743a165?
s=60&d=retro&r=g)

### 󠀁[Very useful](https://wordpress.org/support/topic/very-useful-2826/)󠁿

 [Denis Creative](https://profiles.wordpress.org/denis-creative/) 30 กันยายน 2021

Simple and easy. Works perfectly.

![](https://secure.gravatar.com/avatar/a47e601d18a05e62524eca222b25ea6151daf7b6b359d07dd18a5f94b06acaa0?
s=60&d=retro&r=g)

### 󠀁[Great plugin!](https://wordpress.org/support/topic/great-plugin-19917/)󠁿

 [yorgosx](https://profiles.wordpress.org/yorgosx/) 23 พฤศจิกายน 2018

Works great and easy to use and customise. It already set by default the directories
that need to be left out of Search Engines scanning/indexing… Very happy with it!

![](https://secure.gravatar.com/avatar/165a42ab443c2d963167c5694b17c57f5fd8a13d47d2ae31b0a90137995df0ac?
s=60&d=retro&r=g)

### 󠀁[It wasn’t what I expected.](https://wordpress.org/support/topic/it-wasnt-what-i-expected/)󠁿

 [Josh Gellock](https://profiles.wordpress.org/joshuagellock/) 18 มีนาคม 2018 1 
reply

What I saw wasn’t what I got. The XML sitemap wasn’t included in the robots.txt 
file, even thought this was described as a feature that should work out of the box.
In addition to that, upon installing this plugin, it blocked certain directories
without asking. Lastly, it inserts a line at the top of the file, promoting the 
plugin. That should be an optional feature that users are empowered to turn off.
All in all, it offers the functionality, but falls short and disappoints in other
areas.

![](https://secure.gravatar.com/avatar/85a39fe66f37955a029c9f17a8f414ab6ccc3db79966988d83fb639040836882?
s=60&d=retro&r=g)

### 󠀁[A good plugin](https://wordpress.org/support/topic/a-good-plugin-28/)󠁿

 [mm1379](https://profiles.wordpress.org/mm1379/) 23 มีนาคม 2017

It was good

 [ Read all 10 reviews ](https://wordpress.org/support/plugin/pc-robotstxt/reviews/)

## Contributors & Developers

“Virtual Robots.txt” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Marios Alexandrou ](https://profiles.wordpress.org/marios-alexandrou/)

“Virtual Robots.txt” has been translated into 1 locale. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/pc-robotstxt/contributors)
for their contributions.

[Translate “Virtual Robots.txt” into your language.](https://translate.wordpress.org/projects/wp-plugins/pc-robotstxt)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/pc-robotstxt/), check
out the [SVN repository](https://plugins.svn.wordpress.org/pc-robotstxt/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/pc-robotstxt/) by
[RSS](https://plugins.trac.wordpress.org/log/pc-robotstxt/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.10

 * Fix to prevent the saving of HTML tags within the robots.txt form field. Thanks
   to TrustWave for identifying this issue.

#### 1.9

 * Fix for PHP 7. Thanks to SharmPRO.

#### 1.8

 * Undoing last fixes as they had unintended side-effects.

#### 1.7

 * Further fixes to issue with newlines being removed. Thanks to FAMC for reporting
   and for providing the code fix.
 * After upgrading, visit and re-save your settings and confirm they look correct.

#### 1.6

 * Fixed bug where newlines were being removed. Thanks to FAMC for reporting.

#### 1.5

 * Fixed bug where plugin assumed robots.txt would be at http when it may reside
   at https. Thanks to jeffmcneill for reporting.

#### 1.4

 * Fixed bug for link to robots.txt that didn’t adjust for sub-folder installations
   of WordPress.
 * Updated default robots.txt directives to match latest practices for WordPress.
 * Plugin development and support transferred to Marios Alexandrou.

#### 1.3

 * Now uses do_robots hook and checks for is_robots() in plugin action.

#### 1.2

 * Added support for existing sitemap.xml.gz file.

#### 1.1

 * Added link to settings page, option to delete settings.

#### 1.0

 * Initial release.

## Meta

 *  Version **1.10**
 *  Last updated **4 เดือน ago**
 *  Active installations **50,000+**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **6.9.4**
 *  Languages
 * [English (US)](https://wordpress.org/plugins/pc-robotstxt/) และ [Swedish](https://sv.wordpress.org/plugins/pc-robotstxt/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/pc-robotstxt)
 * Tags
 * [robots](https://th.wordpress.org/plugins/tags/robots/)[robots.txt](https://th.wordpress.org/plugins/tags/robots-txt/)
 *  [Advanced View](https://th.wordpress.org/plugins/pc-robotstxt/advanced/)

## Ratings

 4.3 out of 5 stars.

 *  [  8 5-star reviews     ](https://wordpress.org/support/plugin/pc-robotstxt/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/pc-robotstxt/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/pc-robotstxt/reviews/?filter=3)
 *  [  1 2-star review     ](https://wordpress.org/support/plugin/pc-robotstxt/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/pc-robotstxt/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/pc-robotstxt/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/pc-robotstxt/reviews/)

## Contributors

 *   [ Marios Alexandrou ](https://profiles.wordpress.org/marios-alexandrou/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/pc-robotstxt/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://infolific.com/technology/software-worth-using/robots-txt-plugin-for-wordpress)