Title: Geosec
Author: rbonfil
Published: <strong>2026 年 2 月 5 日</strong>
Last modified: 2026 年 2 月 6 日

---

搜尋外掛

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

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

# Geosec

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

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

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

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

## 外掛說明

**Geosec** is a lightweight security plugin designed to protect your WordPress administration
panel (`wp-admin`). It works by detecting the visitor’s country using their IP address
and allowing access **only** if they are in your “Allowed Countries” whitelist.

This significantly hardens your admin panel against brute-force attacks, bot login
attempts, and unauthorized access from foreign countries.

### Key Features

 * **Whitelist-based Protection:** Only allow access from specific countries.
 * **Emergency Key:** Create a unique URL to bypass the lock if you are traveling.
 * **Cloudflare Compatible:** Works seamlessly with Cloudflare and standard server
   setups.
 * **Detailed Statistics:** View logs of blocked attempts and valid logins, including
   Top Blocked Countries and IPs.
 * **Lightweight:** Optimized for performance, querying external APIs only when 
   necessary and caching results.

## 螢幕擷圖

 * [[
 * **Configuration Panel:** Easily select allowed countries and enable protection.
 * [[
 * **Statistics Dashboard:** View detailed logs of blocked activity.

## 安裝方式

 1. Upload the `geosec` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Go to **Settings -> Geosec** to configure allowed countries.
 4. **IMPORTANT:** Add your CURRENT country to the allow list before activating the
    protection.

## 常見問題集

### What happens if I lock myself out?

If you configured an Emergency Key, you can use the special URL (e.g., `yoursite.
com/?geosec_bypass=YOURKEY`) to gain access. If you didn’t, you can manually rename
the `geosec` folder in `wp-content/plugins/` via FTP to disable the plugin.

### Does this slow down my site?

No. Geosec caches IP geolocation results for 24 hours. Subsequent requests from 
the same IP are instant.

## 使用者評論

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

## 參與者及開發者

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

參與者

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

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

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

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

## 變更記錄

#### 1.0.1

 * Fixed typos.

#### 1.0.0

 * Initial release in WordPress repository.

#### 0.3.1

 * Updated readme security claims to comply with WordPress guidelines.
 * Fixed typos in documentation.
 * Updated plugin description for consistency.

#### 0.3

 * Added “Top Blocked IPs” statistics.
 * Added Internationalization (English, Spanish, French).
 * UI Improvements.

#### 0.2

 * Added Statistics tab.
 * Added Credits section.

#### 0.1

 * Initial release.

## 中繼資料

 *  版本 **1.0.1**
 *  最後更新 **4 個月前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 5.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.9.4**
 *  PHP 版本需求 ** 7.2 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/geosec/)
 * 標籤:
 * [access-control](https://tw.wordpress.org/plugins/tags/access-control/)[block country](https://tw.wordpress.org/plugins/tags/block-country/)
   [GeoIP](https://tw.wordpress.org/plugins/tags/geoip/)[protection](https://tw.wordpress.org/plugins/tags/protection/)
   [security](https://tw.wordpress.org/plugins/tags/security/)
 *  [進階檢視](https://tw.wordpress.org/plugins/geosec/advanced/)

## 評分

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

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

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

## 參與者

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

## 技術支援

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

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