[WordPress] 外掛分享: Admin Country Allowlist

WordPress 外掛 Admin Country Allowlist 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Admin Country Allowlist」是 2024-02-01 上架。
  • 目前有 70 個安裝啟用數。
  • 上一次更新是 2025-04-08,距離現在已有 26 天。
  • 外掛最低要求 WordPress 5.8 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

qwebltd |

外掛標籤

ban | block | security | ban countries | Block countries |

內容簡介

- 這是一個提供給WordPress使用的最簡單的國家允許列表外掛程式。
- 使用QWeb的IP to country查詢API,將管理面板和XMLRPC訪問鎖定在允許的國家列表中。
- 優點:安裝並啟用外掛程式後,只需在外掛程式設置中輸入API訪問密鑰,系統會自動識別您所在的國家並添加到允許列表,也可以添加其他國家。
- 只需在一個字段中以逗號分隔的ISO 3166-1 alpha-2國家代碼輸入國家,可以輕鬆將相同列表複製粘貼到多個網站上。
- 外掛程式還使用相同的允許國家列表限制對WordPress的XMLRPC機制的訪問。
- 可選擇允許或禁止經已允許國家內的已知公共代理服務器進行訪問。
- 外掛程式創建IP信息緩存並自動清除一周前的緩存文件,減少查詢請求數量,保持網站的響應性,同時不會創建過大的緩存。
- 作為一個僅17KB的文件,這是一個非常輕量級的外掛程式。構建以實現高效,並使用QWeb的高度敏感的IP查找API,Admin Country Allowlist外掛程式應該成為您管理的任何WordPress網站的標準安全工具。
- 此外掛程式依賴於QWeb的IP to country查詢API進行IP to country查詢,如果沒有來自此服務的有效API密鑰,將無法運作。QWeb提供適用於大多數網站的免費級別的API服務。請參閱QWeb Ltd API使用條款和QWeb Ltd隱私政策。

組問題和答案:

問題1:這個外掛程式可以做什麼?
答案:這個外掛程式可以限制訪問你的WordPress管理面板的特定國家允許列表。

問題2:外掛程式有哪些特點?
答案:這個外掛程式可以將管理面板和XMLRPC訪問鎖定在允許的國家列表中,並且可以選擇允許或禁止已知公共代理服務器的訪問。

問題3:這個外掛程式的使用方法是什麼?
答案:只需安裝並啟用外掛程式,通過QWeb Ltd API控制台獲取訪問密鑰,然後在外掛程式設置中輸入訪問密鑰即可。

問題4:如何添加允許的國家到列表中?
答案:可以將ISO 3166-1 alpha-2國家代碼以逗號分隔的形式輸入到外掛程式的一個字段中,這樣可以輕鬆將相同的列表複製粘貼到多個網站上。

問題5:這個外掛程式的大小如何?
答案:這個外掛程式只有17KB大小,非常輕量級。

問題6:這個外掛程式需要依賴哪個API服務?
答案:這個外掛程式依賴於QWeb的IP to country查詢API進行IP to country查詢。

原文外掛簡介

By far the simplest country allowlist plugin available for WordPress. Locks admin panel and XMLRPC access to a given list of allowed countries using QWeb’s IP to country lookup API.
This is free open source software (FOSS), which you’re welcome to either use as-is, or fork and further develop under the very permissive terms of the MIT license.
Out of the box, this is most likely the simplest, most efficient plugin for restricting access to your WordPress admin panel to an allowlist of specific countries. Simply install and activate the plugin, obtain an access key via the QWeb Ltd API console, and enter your access key in the plugin settings. The plugin will automatically determine your own country and add this to the allowlist, and you can add other countries to the list as you like.
Countries are entered as comma separated ISO 3166-1 alpha-2 country codes in a single field, making it super easy to copy & paste the same list across multiple websites.
This plugin also restricts access to the WordPress XMLRPC mechanism, using the same country allowlist.
You can optionally choose to allow or disallow access through known public proxy servers, even if they’re located in an allowed country.
The plugin creates a cache of IP information and automatically clears cache files older than one week. This reduces the number of lookup requests and keeps your website responsive, without creating an unnecessarily large cache.
As a single 25kb file, this is an exceptionally lightweight plugin. Built to be efficient, and using QWeb’s incredibly responsive IP lookup API, the Admin Country Allowlist plugin should be a part of your standard security kit for any WordPress websites that you manage.
This plugin relies on QWeb’s IP to country lookup API for IP to country lookups, and will not function without an active API key from this service. QWeb does provide a FREE tier for this API service, suitable for most websites. Please refer to the QWeb Ltd API Terms of Use and QWeb Ltd Privacy Policy.

各版本下載點

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

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


1.0.3 | 1.0.4 | 1.1.0 | 1.1.1 | 1.2.0 | 1.2.1 | 1.3.0 | 1.4.0 | trunk |

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

  • iQ Block Country 》iQ Block Country 是一款外掛,可讓您限制網站內容的訪問。您可以允許或禁止來自指定國家的訪客訪問(部分)內容。, 例如,如果您需要將內容限制在有限的幾個...。
  • Mr Blocker 》你的網站可能會收到來自特定國家的可疑流量,而這款外掛非常易於使用,只需阻擋不需要的流量,以保護你的網站安全。這是一個非常簡單的工具,只需要勾選方框...。

文章
Filter
Apply Filters
Mastodon