[WordPress] 外掛分享: Restrict Admin Login by Country – GRC

首頁外掛目錄 › Restrict Admin Login by Country – GRC
10+
安裝啟用
尚無評分
51 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.4+ v1.6 上架:2025-06-29

內容簡介

**外掛簡介:**

這個外掛透過地理位置,限制特定國家的存取,保護您的 WordPress 登入區域。尤其適用於提升管理員、商店管理員、編輯和作者的安全性。

**問題與答案:**

1. 這個外掛主要是透過什麼方式來限制特定角色的登入?
- 答: 這個外掛根據 IP 地理位置,限制管理員、商店管理員、編輯和作者角色的登入。

2. 外掛會如何自動白名單首次啟用時的國家?
- 答: 外掛會自動白名單首次啟用時的國家。

3. 外掛有哪些設定,使用者可以手動選擇允許的國家?
- 答: 外掛有設定頁面可供使用者手動選擇允許的國家。

4. 這個外掛如何動態地透過公共 API 取得國家清單?
- 答: 外掛可以動態透過公共 API 取得國家清單。

5. 外掛使用哪個服務來進行 IP 地理位置偵測?
- 答: 外掛使用 ipinfo.io 進行 IP 地理位置偵測。

6. restcountries.com 服務的主要用途是什麼?
- 答: restcountries.com 用於動態取得在外掛設定中顯示的國家清單。

7. 外掛會傳送什麼數據到 ipinfo.io?
- 答: 外掛在登入時會傳送使用者的 IP 地址給 ipinfo.io,以確定使用者的國家,並執行存取規則。

8. 這個外掛的授權是根據哪個授權條款?
- 答: 這個外掛根據 GPLv2 或之後的版本進行授權。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.6) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Restrict Admin Login by Country – GRC」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin protects your WordPress login area by restricting access to specific countries based on geolocation. It is especially useful for hardening security for roles such as administrator, shop manager, editor, and author.
Features:

Restricts logins for admin, shop manager, editor, and author roles based on IP geolocation.
Automatically whitelists the country where the plugin was first activated.
Settings page to manually select allowed countries.
Dynamically fetches a list of countries via a public API.
Lightweight and easy to configure.

Powered by ipinfo.io for IP geolocation detection.
External Services
This plugin relies on two external services to function properly. These services are used to identify user locations and provide country data for configuration purposes.
1. ipinfo.io
What is the service used for?
– Used to determine the geolocation (specifically, the country) of an IP address attempting to log in.
– Ensures that only users from allowed countries can log in as administrator, shop manager, editor, or author.
What data is sent and when?
– The plugin sends the IP address of the user attempting to log in to ipinfo.io at the time of login.
– This is done in real time to determine the user’s country and enforce access rules.
Service Provider:
– Website: https://ipinfo.io
– Terms of Service: https://ipinfo.io/terms
– Privacy Policy: https://ipinfo.io/privacy-policy
2. restcountries.com
What is the service used for?
– Used to dynamically fetch the list of countries (with country codes and names) displayed in the plugin settings.
– Allows users to easily select which countries should be allowed for admin login access.
What data is sent and when?
– No user data is sent.
– The plugin performs a GET request to https://restcountries.com/v3.1/all?fields=cca2,name to fetch a list of country codes and names during plugin settings initialization.
Service Provider:
– Website: https://restcountries.com
– API Documentation: https://restcountries.com/#api-endpoints-v3-all
– No specific privacy policy is published, as this is a public API that does not handle user-specific data.
License
This plugin is licensed under the GPLv2 or later. See https://www.gnu.org/licenses/gpl-2.0.html for details.

延伸相關外掛

文章
Filter
Mastodon