Title: Virtual Robots.txt
Author: Marios Alexandrou
Published: <strong>13. juni, 2009</strong>
Last modified: 11. juni, 2026

---

Søg 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

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

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

 * [Detaljer](https://da.wordpress.org/plugins/pc-robotstxt/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/pc-robotstxt/#reviews)
 *  [Installation](https://da.wordpress.org/plugins/pc-robotstxt/#installation)
 * [Udvikling](https://da.wordpress.org/plugins/pc-robotstxt/#developers)

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

## Beskrivelse

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. Activate the plugin through the ‘Plugins’ menu in WordPress
 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.

## Anmeldelser

![](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. januar, 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. september, 2023 4 
svar

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. september,
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. november, 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. marts, 2018 1
svar

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. marts, 2017

It was good

 [ Læs alle 10 anmeldelser ](https://wordpress.org/support/plugin/pc-robotstxt/reviews/)

## Bidragsydere & udviklere

“Virtual Robots.txt” er open source-software. Følgende personer har bidraget til
dette plugin.

Bidragsydere

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

“Virtual Robots.txt” er blevet oversat til 1 sprog. Tak til [oversætterne](https://translate.wordpress.org/projects/wp-plugins/pc-robotstxt/contributors)
for deres bidrag.

[Oversæt “Virtual Robots.txt” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/pc-robotstxt)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/pc-robotstxt/), tjek
[SVN repository](https://plugins.svn.wordpress.org/pc-robotstxt/), eller abonner
på [udviklerloggen](https://plugins.trac.wordpress.org/log/pc-robotstxt/) via [RSS](https://plugins.trac.wordpress.org/log/pc-robotstxt/?limit=100&mode=stop_on_copy&format=rss).

## Ændringslog

#### 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**
 *  Senest opdateret **3 uger siden**
 *  Aktive installationer **40.000+**
 *  WordPress-version ** 5.0 eller højere **
 *  Testet op til **7.0**
 *  Sprog
 * [English (US)](https://wordpress.org/plugins/pc-robotstxt/) og [Swedish](https://sv.wordpress.org/plugins/pc-robotstxt/).
 *  [Oversæt til dit sprog](https://translate.wordpress.org/projects/wp-plugins/pc-robotstxt)
 * Tags
 * [robots](https://da.wordpress.org/plugins/tags/robots/)[robots.txt](https://da.wordpress.org/plugins/tags/robots-txt/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/pc-robotstxt/advanced/)

## Bedømmelser

 4.3 ud af 5 stjerner.

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

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

[Se alle anmeldelser.](https://wordpress.org/support/plugin/pc-robotstxt/reviews/)

## Bidragsydere

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

## Support

Har du noget at sige? Har du brug for hjælp?

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

## Donér

Vil du gerne støtte udviklingen af dette plugin?

 [ Donér til dette plugin ](https://infolific.com/technology/software-worth-using/robots-txt-plugin-for-wordpress)