[WordPress] 外掛分享: Geo Blocker – Control Site Access by Region and IP

WordPress 外掛 Geo Blocker – Control Site Access by Region and IP 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Geo Blocker – Control Site Access by Region and IP」是 2025-05-17 上架。
  • 目前有 600 個安裝啟用數。
  • 上一次更新是 2025-05-18,距離現在已有 283 天。
  • 外掛最低要求 WordPress 5.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.2 以上。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

medshi8 |

外掛標籤

ip blocker | geolocation | geo blocking | access-control | country restriction |

內容簡介

總結:Geo Blocker 是一個強大的 WordPress 外掛,讓您可以根據訪客的國家和 IP 來控制訪問權限、追蹤訪問嘗試和查看分析報告,輕鬆保持控制。

問題與答案:
1. Geo Blocker 提供了什麼樣的存取控制功能?
- 答案:它可以封鎖特定國家的訪問,或者只允許特定國家訪問您的網站。

2. 外掛有哪些智慧封鎖操作?
- 答案:顯示自定義訊息、重新導向到 URL、或者發送 HTTP 403 Forbidden 響應。

3. 描述 Geo Blocker 的視覺化國家選擇器有什麼特色?
- 答案:它有國旗圖示和搜尋欄,可快速定位目標,並且可以按洲(非洲、亞洲、歐洲等)進行篩選,方便一鍵全選/取消全選。

4. 請簡要說明 Geo Blocker 的分析儀表板提供了哪些功能?
- 答案:它包含總訪問次數、封鎖次數、IP 數量的摘要卡、每小時的圖表以即時獲取資訊,可按日期範圍和資料類型(訪問次數、獨立 IP 等)進行篩選。

5. Geo Blocker 的特色之一是什麼?如何確保管理員不會被鎖定在系統外?
- 答案:外掛具備管理員安全旁路功能,包括一個特殊的 URL,以繞過鎖定,讓您隨時可以登入後台。

6. 外掛如何進行數據導出和日誌管理?
- 答案:您可以以 CSV 或 JSON 格式導出日誌,僅需點擊一下即可清除日誌,還可以在使用者介面中排序和搜索日誌。

原文外掛簡介

🔐 Block or allow visitors by country. Track access attempts. View analytics. Stay in control — effortlessly.
🧠 Description
Geo Blocker gives you full control over who can access your WordPress site — based on visitor country and IP. Whether you’re protecting content, reducing attack surface, or managing regional access, this plugin does it with precision and clarity.
🎯 Designed for performance, security, and ease of use.
📊 Built-in analytics and access logs.
🧭 Never get locked out — admin-safe bypass included.
🚀 Features
✅ Access Control That Makes Sense

Block Selected Countries – deny access to specific regions
Allow Selected Countries – restrict site only to approved countries

🧩 Smart Blocking Actions

📜 Show custom message
🔁 Redirect to a URL
🚫 Send HTTP 403 Forbidden response

🌐 Visual Country Selector

Flag icons & search bar for quick targeting
Filter by continent (Africa, Asia, Europe, etc.)
One-click select/deselect all

📈 Analytics Dashboard

Summary cards: total visits, blocks, IPs
Hourly charts for real-time insights
Filter by date range & data type (accesses, unique IPs, etc.)

📋 Detailed Logs

See IP, country, URL, status, user agent
Filters out common junk (favicon, robots.txt)
Admin visits are auto-ignored to reduce noise

🛠️ Admin-Proof Bypass URL

Special URL with bypass parameter to access login anytime
Prevents accidental lockouts

🔄 Data Export & Log Management

Export logs in CSV or JSON
Clear logs with a single click
Sort & search logs in the UI

🌐 External Services
This plugin uses a third-party API to determine the visitor’s country based on their IP address.

Service used: IPWho.is
Purpose: To perform IP geolocation and detect the country of each visitor, allowing the plugin to block or allow access accordingly.
Data sent: The visitor’s IP address is sent to the IPWho.is API on page load when geo-blocking is active.
Terms of Service: https://ipwhois.io/terms
Privacy Policy: https://ipwhois.io/privacy

🖥️ Screenshots

📊 Dashboard Overview – See country blocks, allowed hits & total attempts
🔧 Blocking Rules – Choose block mode, action type, and targets. Enable or disable countries visually
📉 Analytics Graphs – View access by time, state, and IP 5. 📑 Logs Table – Deep insights with full logs of visitor attempts. Export CSV/JSON logs with one click

📦 Installation

Upload the plugin folder to /wp-content/plugins/geo-blocker
Activate via Plugins → Installed Plugins
Go to Settings → Geo Blocker
Enable Geo Blocking using the toggle
Choose between block or allow mode
Select countries using the visual interface
Pick your blocking action (message, redirect, or 403)
Save settings — done!

❓ Frequently Asked Questions
How does Geo Blocker detect country?
It uses the reliable IpWhoIs API to fetch country data based on the visitor’s IP.
Will it slow down my site?
Nope. It’s optimized with transient caching and smart triggers — no unnecessary lookups.
Can I lock myself out?
No. There’s a login bypass URL generated for administrators — shown right on the dashboard.
Can I block specific pages?
Not yet — current version works site-wide. Per-page rules may come in a future update.
Can I export visitor logs?
Yes. Logs can be exported in CSV or JSON format directly from the Logs tab.
Does it work with caching plugins?
Yes, but you may need to exclude the plugin’s logic from caching. Dynamic geo checks should not be cached.
🗂️ Changelog
1.0.0

🎉 Initial release with all core features

🛡️ Additional Notes
Emergency Bypass
Every admin gets a custom bypass link to avoid accidental lockouts. It’s always visible in the dashboard.
Blocking Actions
Choose the experience blocked users receive:
– Custom message
– Redirect to another URL
– Send 403 Forbidden header
Logs & Privacy
Logs are stored locally in your WordPress database. The plugin sends only the visitor’s IP to IPWho.is — no personally identifiable information is shared or stored externally.
💡 Enjoying Geo Blocker? Try Our Other Free Plugins
Looking for even more control and peace of mind? Check out our other tools:
🔕 Notification Blocker – Hide annoying plugin notices from your dashboard without hacking core files.
🛡️ Fortress Login Pro – Obscure your login page, add brute-force protection, and block unauthorized access attempts with ease.
If you like Geo Blocker, you’ll probably find these just as helpful. Try them out!

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Geo Blocker – Control Site Access by Region and IP」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 | trunk |

延伸相關外掛(你可能也想知道)

  • Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More 》Content Control 是一個輕量而強大的外掛,可以讓您完全掌控網站內容,限制未登錄用戶、特定使用者角色或已登出用戶存取頁面/文章。, 此外,本外掛也可以使用...。
  • Restrict User Access – Ultimate Membership & Content Protection 》Restrict User Access 是一款 WordPress 快速且簡單的會員外掛。幾分鐘內,即可限制您的內容,而非需要幾個小時。, 快速建立有付費等級(如白金、黃金或免費...。
  • Groups 》d plugins easily, Groups is fully object-oriented and implements the standard WordPress coding practices., It adheres to the WordPress Coding Stand...。
  • Menu By User Roles 》總結:, , - "Custom Menu User Roles" 是一個 WordPress 外掛,可根據使用者角色來控制選單項目的可見度。, - 使用者可以針對每個選單項目指定特...。
  • SimpleShop 》SimpleShop WP 外掛可安裝在 WordPress 網站上,版本需為 WP 4.6 或更高版本,或 Mioweb 網站上,, 該網站不包含自己的會員區塊。相容版本的 PHP 為 5.6.20 ...。
  • Groups 404 Redirect 》這個外掛程式將重定向因訪問由Groups所保護的頁面而導致的 404 錯誤。, 重定向設定可在「設定 > Groups 404」中調整:, 訪問被保護的頁面時可重定向至:, , ...。
  • Anonymous Restricted Content 》這個外掛就像你預期的那樣簡單!, 而且現在它支援最新的 WordPress Gutenberg 編輯器!, 只需勾選核取方塊,標記要隱藏的內容,就完成了限制訪問。, 如果匿名...。
  • Easy Basic Authentication – Add basic auth to site or admin area 》總結:, Easy Basic Authentication 外掛提供了一種簡單的方法,可以在 WordPress 網站上添加基本身份驗證。您可以通過設置自定義的使用者名稱和密碼,為整個...。
  • RoleMaster Suite – User Role Editor for Ecommerce, Membership admin panel 》總結:這個 WordPress 外掛可以根據使用者角色自動隱藏管理員工具列,適用於「訂閱者」和「投稿者」。, 問題與答案:, 1. 這個外掛的功能是什麼?, - 根據使...。
  • Custom Access Roles 》2.0.0版新增功能:使用自訂角色的使用者現在只會看到分配給他們的文章或頁面。我們還精簡了管理介面,讓配置更輕鬆,同時新增了額外的說明,以協助您將正確的...。
  • Simple Password Protect 》總結:Simple Password Protect 提供了一個簡單的方式來保護您整個 WordPress 網站的前端,非常適合開發站點、私人部落格或任何需要基本訪問控制的網站。, , ...。
  • MyASP MemberShip 》總結:MyASP MemberShip Plugin 是專為 MyASP 用戶設計的會員網站創建外掛程式。使用此外掛程式需要訂閱 MyASP,用戶註冊和管理在 MyASP 端進行,不會儲存在 ...。
  • UMich OIDC Login 》這個外掛是為了特定使用情境而設計:你的 WordPress 網站是某個組織的一部分,使用開放式身份驗證 (OpenID Connect,OIDC) 進行網站單一登入以及基於群組的授...。
  • ELU Hide Admin Menu 》ELU 隱藏管理選單外掛可協助您根據使用者角色在 WordPress 管理員區隱藏管理選單及管理工具列項目。只需勾選相對應的選項及使用者角色,然後儲存。您就能為客...。
  • Restrict Anonymous Access 》這個外掛可以幫助你隱藏部分內容,例如一個段落或一個圖片等,只需要使用簡單的短代碼就可以對未登入的用戶或其他角色的用戶進行隱藏。, 可以自定義短代碼以...。

文章
Filter
Apply Filters
Mastodon