Title: Virtual Robots.txt
Author: Marios Alexandrou
Published: <strong>2009 年 6 月 13 日</strong>
Last modified: 2025 年 12 月 29 日

---

搜尋外掛

![](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

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

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

 * [詳細資料](https://tw.wordpress.org/plugins/pc-robotstxt/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/pc-robotstxt/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/pc-robotstxt/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/pc-robotstxt/#developers)

 [技術支援](https://wordpress.org/support/plugin/pc-robotstxt/)

## 外掛說明

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.

## 安裝方式

 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.

## 常見問題集

### 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.

## 使用者評論

![](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/) 2026 年 1 月 17 日

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/) 2023 年 9 月 19 日 4 則
留言

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/) 2021 年 9 月 30
日

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/) 2018 年 11 月 23 日

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/) 2018 年 3 月 18 日
1 則留言

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/) 2017 年 3 月 23 日

It was good

 [ 閱讀全部 10 則使用者評論 ](https://wordpress.org/support/plugin/pc-robotstxt/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Virtual Robots.txt〉的開發相關工作。

參與者

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

〈Virtual Robots.txt〉外掛目前已有 1 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/pc-robotstxt/contributors)
為這個外掛做出的貢獻。

[將〈Virtual Robots.txt〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/pc-robotstxt)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/pc-robotstxt/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/pc-robotstxt/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/pc-robotstxt/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/pc-robotstxt/)。

## 變更記錄

#### 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.

## 中繼資料

 *  版本 **1.10**
 *  最後更新 **5 個月前**
 *  啟用安裝數 **40,000+**
 *  WordPress 版本需求 ** 5.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.9.4**
 *  語言
 * [English (US)](https://wordpress.org/plugins/pc-robotstxt/) 及 [Swedish](https://sv.wordpress.org/plugins/pc-robotstxt/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/pc-robotstxt)
 * 標籤:
 * [robots](https://tw.wordpress.org/plugins/tags/robots/)[robots.txt](https://tw.wordpress.org/plugins/tags/robots-txt/)
 *  [進階檢視](https://tw.wordpress.org/plugins/pc-robotstxt/advanced/)

## 評分

 4.3 星，滿分為 5 星

 *  [  8 個 5 星使用者評論     ](https://wordpress.org/support/plugin/pc-robotstxt/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/pc-robotstxt/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/pc-robotstxt/reviews/?filter=3)
 *  [  1 個 2 星使用者評論     ](https://wordpress.org/support/plugin/pc-robotstxt/reviews/?filter=2)
 *  [  1 個 1 星使用者評論     ](https://wordpress.org/support/plugin/pc-robotstxt/reviews/?filter=1)

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

[查看全部使用者評論](https://wordpress.org/support/plugin/pc-robotstxt/reviews/)

## 參與者

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

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/pc-robotstxt/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://infolific.com/technology/software-worth-using/robots-txt-plugin-for-wordpress)