Title: Gatekeeper
Author: jamiewilson
Published: <strong>2011 年 7 月 11 日</strong>
Last modified: 2017 年 10 月 23 日

---

搜尋外掛

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

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

# Gatekeeper

 由 [jamiewilson](https://profiles.wordpress.org/jamiewilson/) 開發

[下載](https://downloads.wordpress.org/plugin/gatekeeper.zip)

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

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

## 外掛說明

Gatekeeper allows administrators to take a WordPress site offline quickly and easily
while leaving it fully accessible to administrators and other authorized users. 
Site visitors will be shown or redirected to a specified offline page. An optional
blacklist can be used for permanent bans.

** Features **

 * Visitors can either be redirected to an existing non-WordPress offline page (
   using http 302 temporary redirect) or WordPress pages can be temporarily replaced
   with the offline page.
 * Logged in admins can be whitelisted
 * The current admin’s IP address can be automatically whitelisted
 * An IP-based whitelist that can accept specific IP addresses, wildcards, and ranges
 * A basic IP-based blacklist that redirects blacklisted IPs to a specified page(
   not to be used for security)
 * A notifier that appears on administrator pages when the site is offline

## 螢幕擷圖

[⌊The Gatekeeper administration page⌉⌊The Gatekeeper administration page⌉[

The Gatekeeper administration page

## 安裝方式

 1. Upload `gatekeeper` to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Go to _Tools > Gatekeeper_ to manage Gatekeeper.

## 常見問題集

  Installation Instructions

 1. Upload `gatekeeper` to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Go to _Tools > Gatekeeper_ to manage Gatekeeper.

  Why was this plugin developed?

I needed a “coming soon” page for a site I was working on but also needed to be 
able to use WordPress myself in order to test themes, designs, etc.
 The existing
landing page themes are nice, unless you also need to be able to test a theme without
letting the world see. At first, I added some PHP code into the WordPress index.
php file to redirect all but my IP address to the coming soon page, but WP upgrades
opened my site to the world. Editing the htaccess file is an option, but it’s extra
work and only works until my IP address changes. So…I created Gatekeeper.

  Can I redirect visitors to an existing WordPress page?

No. Gatekeeper protects all WordPress pages (except admin and login pages) from 
everyone but those whitelisted, so redirecting to a WordPress page
 would create
an undesirable redirect loop.

  How do I use an offline page?

The offline page can be any web-friendly page: HTML, PHP, text, etc. It’s not required,
but recommended, to keep this file in a separate directory to keep it from being
confused with WordPress files.

  Can Gatekeeper protect non-WordPress pages?

No.

  Should I rely on the Blacklist for security?

No. The primary purpose of the plugin is to take sites offline for maintenance. 
The Blacklist was designed as an extra feature to help thwart connections from undesirable
IP addresses, but is not designed as a security feature. WordPress administrators
would be advised to use Wordfence, iThemes Security, Bulletproof Security, Sucuri
Security, or another widely used and trusted WordPress security plugin for security.

  Help! It doesn’t work!!

If the plugin doesn’t appear to be working, first check your whitelist. Make sure
you’re not testing from a whitelisted IP address. If _Auto-Protect Admin IP_ is 
checked, the plugin will attempt to automatically whitelist your IP address and 
let you see the site normally. If you have _Whitelist Logged-in Admins_ checked,
the plugin will let you view the site normally as long as you are logged into WordPress.
The plugin is designed to do its best to not lock you out of your own site.

## 使用者評論

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

## 參與者及開發者

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

參與者

 *   [ jamiewilson ](https://profiles.wordpress.org/jamiewilson/)

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

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

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

## 變更記錄

#### 1.1

 * UI improvements.
 * Explicit warnings that the Blacklist is not designed for security. See FAQ.
 * Acknowledging support for latest version of WordPress.

#### 1.0.1

 * Minor bug fix to eliminate an “undefined index” error.

#### 1.0

 * Updated code to avoid conflicts with other plugins and themes that were resulting
   in “Fatal error: Cannot redeclare admin_register_head()” errors.
 * Consolidated plugin styles (CSS) into one stylesheet, instead of having some 
   inline styles scattered throughout the code.
 * Whitelist/Blacklist options are now collapsible (and collapsed by default).
 * Minor miscellaneous visual improvements.

#### 0.8

 * Initial release (beta version).

## 中繼資料

 *  版本 **1.1**
 *  最後更新 **9 年前**
 *  啟用安裝數 **200+**
 *  WordPress 版本需求 ** 3.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.8.28**
 *  語言
 * [English (US)](https://wordpress.org/plugins/gatekeeper/)
 * 標籤:
 * [blacklist](https://tw.wordpress.org/plugins/tags/blacklist/)[maintenance](https://tw.wordpress.org/plugins/tags/maintenance/)
   [offline](https://tw.wordpress.org/plugins/tags/offline/)[whitelist](https://tw.wordpress.org/plugins/tags/whitelist/)
 *  [進階檢視](https://tw.wordpress.org/plugins/gatekeeper/advanced/)

## 評分

 3.7 星，滿分為 5 星

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

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

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

## 參與者

 *   [ jamiewilson ](https://profiles.wordpress.org/jamiewilson/)

## 技術支援

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

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

## 贊助

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

 [ 贊助這個外掛 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=J3ETMQWMPY586)