Title: Prevent Indexing on Non-Live Sites
Author: Steve North
Published: <strong>2023 年 11 月 28 日</strong>
Last modified: 2025 年 10 月 6 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/staging-prevent-indexing.svg)

# Prevent Indexing on Non-Live Sites

 由 [Steve North](https://profiles.wordpress.org/tex0gen/) 開發

[下載](https://downloads.wordpress.org/plugin/staging-prevent-indexing.1.0.1.zip)

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

 [技術支援](https://wordpress.org/support/plugin/staging-prevent-indexing/)

## 外掛說明

This WordPress plugin ensures that search engine indexing is automatically turned
OFF if the site’s URL doesn’t match the provided live site URL. It’s especially 
useful for development and staging environments, where you might not want content
to be indexed by search engines.

**Features:**
 – Automatically turns off search engine indexing for non-live sites.–
Provides an admin settings page to specify the live site URL. – Displays an admin
notice if indexing has been turned off due to URL mismatch. – Encodes the live site
URL to prevent inadvertent changes when using migration tools. – Admin notice prompts
for setting the live site URL if it hasn’t been configured yet.

### Usage

 1. After activating the plugin, go to the admin dashboard.
 2. Navigate to `Settings` -> `Prevent Indexing`.
 3. Enter your live site URL in the provided input field and save.
 4. If the current site’s URL doesn’t match the provided live site URL, search engine
    indexing will be turned off, and an admin notice will inform you of the same.

### License

[GPLv2 or later](https://www.gnu.org/licenses/gpl-2.0.html)

## 安裝方式

 1. Download the plugin and extract the files.
 2. Upload the extracted folder to the `/wp-content/plugins/` directory.
 3. Activate the plugin through the ‘Plugins’ menu in WordPress.
 4. Navigate to `Settings` -> `Prevent Indexing` to configure your live site URL.

## 常見問題集

### Will this plugin modify my content or themes?

No, the plugin only alters the “Search Engine Visibility” setting in WordPress.

### What happens if I forget to set the live site URL?

The plugin will display an admin notice prompting you to set the live site URL. 
Until set, no actions are taken on search engine visibility.

### Why is the live site URL encoded in the database?

The encoding is to prevent migration tools from inadvertently changing the URL during
a search and replace operation, which is common when moving WordPress sites.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Prevent Indexing on Non-Live Sites〉的開發相關工作。

參與者

 *   [ Steve North ](https://profiles.wordpress.org/tex0gen/)

[將〈Prevent Indexing on Non-Live Sites〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/staging-prevent-indexing)

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

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

## 變更記錄

#### 1.0.1

 * Tested with latest version of WordPress.

#### 1.0

 * Initial release.

## 中繼資料

 *  版本 **1.0.1**
 *  最後更新 **1 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 4.6 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.8.12**
 *  PHP 版本需求 ** 7.1 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/staging-prevent-indexing/)
 * 標籤:
 * [development](https://tw.wordpress.org/plugins/tags/development/)[indexing](https://tw.wordpress.org/plugins/tags/indexing/)
   [prevent](https://tw.wordpress.org/plugins/tags/prevent/)[seo](https://tw.wordpress.org/plugins/tags/seo/)
   [staging](https://tw.wordpress.org/plugins/tags/staging/)
 *  [進階檢視](https://tw.wordpress.org/plugins/staging-prevent-indexing/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/staging-prevent-indexing/reviews/#new-post)

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

## 參與者

 *   [ Steve North ](https://profiles.wordpress.org/tex0gen/)

## 技術支援

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

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

## 贊助

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

 [ 贊助這個外掛 ](https://www.buymeacoffee.com/tex0gen)