[WordPress] 外掛分享: Advanced Country Blocker

WordPress 外掛 Advanced Country Blocker 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Advanced Country Blocker」是 2025-01-17 上架。
  • 目前有 300 個安裝啟用數。
  • 上一次更新是 2025-03-25,距離現在已有 40 天。
  • 外掛最低要求 WordPress 5.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.2 以上。
  • 有 3 人給過評分。
  • 論壇上目前有 1 個提問,問題解答率 100% ,不低,算是個很有心解決問題的開發者團隊了!

外掛協作開發者

brstefanovic |

外掛標籤

country | blocking | security | geolocation | IP-blocking |

內容簡介

總結:Advanced Country Blocker 外掛能夠透過依據訪客的地理位置(國家)或IP位址來限制存取,進而幫助您加強 WordPress 網站的安全性。提供多項功能,包括自動允許管理員所在的國家、臨時存取權限、手動列入黑名單、郵件警示、管理員例外設定、詳細的封鎖紀錄等。

問題與答案:
1. Advanced Country Blocker 外掛的主要功能是什麼?
- 透過依據訪客的地理位置(國家)或IP位址來限制存取,提升 WordPress 網站的安全性。

2. 啟用 Advanced Country Blocker 外掛後,如何標記唯一允許的國家?
- 當外掛啟動時,會偵測啟動管理員的國家並自動將其設定為唯一允許的國家。

3. 外掛如何處理來自不同國家的訪客?
- 除了已設定的唯一允許國家外,其他不同國家的訪客將被封鎖,除非他們使用秘密金鑰參數暫時將其IP列入白名單。

4. 如何自訂外掛的設定?
- 您可以在 WordPress 管理員中使用外掛設定頁面 (Country Blocker menu) 來設定允許的國家列表、黑名單國家、黑名單IP,以及啟用郵件警示。

原文外掛簡介

Advanced Country Blocker helps you secure your WordPress site by restricting access based on the visitor’s geolocation (country) or IP address. Upon activation, the plugin detects the activating admin’s country and automatically sets that as the only allowed country. All other visitors from different countries are blocked, unless they use a secret key parameter to temporarily whitelist their IP.
Key Features:

Automatically allows the admin’s country on plugin activation.
Temporary access via a customizable secret URL parameter (e.g., ?MySecretKey=1).
Manual blacklisting of specific countries or IP addresses for added security.
Optional email alerts when new visitors are blocked.
Admin bypass so logged-in admins can always access the site (toggleable in the code).
Detailed logging of blocked attempts in a custom database table, displayed in the WP admin.
Custom “Blocked” page functionality—show a custom message or redirect to a specific page instead of the default 403.

Use the plugin settings page (Country Blocker menu in WP admin) to configure the list of allowed countries, blacklisted countries, blacklisted IPs, and whether email alerts are enabled.
License
This plugin is open-sourced software licensed under the GPLv3 or later.
External Services
This plugin uses the free IP geolocation service provided by IP-API to determine the visitor’s country.
Data sent to IP-API includes:
– Visitor’s IP address (to determine the country of origin).
Learn more about their:
– Terms of Service
– Privacy Policy

各版本下載點

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

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


2.0.1 | 2.0.2 | 2.0.3 | trunk |

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

  • IP Location Block 》ip位置封鎖外掛能夠根據訪問者的位置封鎖訪問,同時保護你的網站免於惡意攻擊。該外掛提供智能而強大的保護方法,稱為「WP零日漏洞預防」和「WP元數據漏洞保...。
  • Country Based Payments for WooCommerce 》這款外掛可以讓您選擇哪些付款閘道應該在特定國家或多個國家中提供。, 如果您需要將某些付款閘道提供給所有國家,請不要設置相關選項。, 此 WooCommerce 外掛...。
  • Admin Block Country 》這是一個易於使用的外掛程序,可通過國家地區屏蔽您的 WordPress 管理區。它使用 geoip-api-php 作為庫,以確定訪問者的國家。。
  • SVG Flags – Beautiful Scalable Flags For All Countries! 》SVG Flags of the world 可以讓您在幾秒內在WordPress網站上添加高質量的美麗旗幟。您可以以任何比例顯示一個或多個旗幟,而不會失去品質並且具有固定的長寬...。
  • Product Visibility by Country for WooCommerce 》「Product Visibility by Country for WooCommerce」外掛可讓你依據客戶的國家,決定是否顯示/隱藏 WooCommerce 的商品。外掛會自動透過 IP偵測客戶所在地。,...。
  • Polylang – Country Detection 》Polylang 多語言外掛是一個完美的 WordPress 插件。使用 Polylang 擴展可以根據訪問者國家來偵測其首選語言。, 如果您的網站使用相同語言但不同區域 (例如德...。
  • IP Locator 》定位器是 WordPress 的國家和語言檢測工具。它快速、可靠且即插即用。, 它可以檢測和呈現每位訪客的國家、主要語言和國旗。它提供:, , 強大、準確和超快速的...。
  • country-redirect 》這個外掛對於像 Alfa Romeo、Bosch、Biir 和 Siemens 這樣的公司和擁有不同網站的部落格(針對來自不同國家的非登入訪客)非常有用。, 它在 WordPress 的管理...。
  • WooCommerce Sales by Country 》WooCommerce Sales by Country 是一個外掛,可以添加一個報告頁面,顯示特定國家的產品銷售報告。這個外掛還帶有一個額外的報告頁面,讓您可以按國家顯示銷售...。
  • WooCommerce Country Based Bank Accounts 》這是一個 WooCommerce 擴充套件,允許您將 BACS(直接銀行轉帳)銀行帳戶分配給不同的國家。根據選擇的帳單國家,只有相應的銀行帳戶才會顯示在「感謝您」頁...。
  • Country Caching For WP Super Cache 》由於個人情況,我無法再開發或支援此外掛。如果您有興趣接手此外掛,請參閱 https://developer.wordpress.org/plugins/wordpress-org/take-over-an-existing-...。
  • Category Country Aware WordPress 》由於個人原因,我不能再繼續開發或支援此外掛。如果您有興趣接手此外掛,請參閱 https://developer.wordpress.org/plugins/wordpress-org/take-over-an-exist...。
  • ACF City Selector 》ACF城市選擇器是進階自訂欄位外掛Advanced Custom Fields的擴充套件,它會新增一個欄位,讓你可以選擇城市,依據所在的國家和省份/州。, 新增欄位, 3個下拉式...。
  • WP Country 》使用 WP Country 外掛程式在你的佈景主題或插件中,請在你的佈景主題或插件 PHP 檔中添加 global $wp_country;,, 然後:, , , $wp_country->countries_li...。
  • World Flag 》World Flag 是一個 WordPress 國旗外掛程式,可以讓作者透過 shortcode 方便地在文章或頁面中加入國旗。, 此外掛已新增了 Tinymce 編輯器按鈕,讓使用者只需...。

文章
Filter
Apply Filters
Mastodon