[WordPress] 外掛分享: IPGeolocation – Geo Redirects & Content Control

WordPress 外掛 IPGeolocation – Geo Redirects & Content Control 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「IPGeolocation – Geo Redirects & Content Control」是 2026-01-04 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2026-01-05,距離現在已有 52 天。
  • 外掛最低要求 WordPress 5.8 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

ipgeolocation |

外掛標籤

geolocation | ip redirect | geo redirect | conditional content |

內容簡介

總結:IPGeolocation - Geo Redirect & Content Control 是一個強大的 WordPress 外掛,可以根據訪客的地理位置來控制他們與網站的互動。該外掛使用 ipgeolocation.io API 來確定訪客的國家和其他元數據,實現高級的基於地理位置的邏輯,而不會減慢您的網站。

1. 這個外掛的主要功能包括:
- 基於國家的重新導向(整個網站、特定頁面或 URL 模式)
- 可選的彈出式確認再導向前
- 國家級別的存取控制(允許或封鎖)
- 有條件的內容短代碼
- 通過短代碼輸出訪客地理位置數據
- 頁面和查詢字符串排除
- 通過 URL 參數進行重定向繞過和重置
- 機器人檢測(排除搜索引擎和社交爬蟲)
- 管理員安全(管理員永遠不會被重新導向)
- 使用 WordPress transients 進行 IP 响應緩存

2. 設置:
- 這個外掛支持 ipgeolocation.io 的以下 API 計劃:Developer、Standard、Advanced 和 Security。
- 根據計劃,可能會提供額外的與安全相關領域。

3. 短代碼:
- 顯示單個地理位置字段
- 有條件的內容(如果匹配顯示,如果不匹配隱藏)
- 重定向繞過

4. 外部服務:
- 這個外掛依賴 ipgeolocation.io API 提供其核心地理位置功能。
- 使用的 API 功能包括:確定訪客的國家、城市、州、洲、緯度/經度等,檢測代理、VPN、Tor 使用和雲服務提供商,啟用基於國家的重新導向、內容可見規則和存取控制,每個 IP 緩存 API 響應 24 小時,以減少請求並提高性能。

5. 注意事項:
- 需要一個 ipgeolocation.io API 金鑰,您可以在 ipgeolocation.io 創建免費或付費帳戶來獲取。
- 沒有 API,外掛的核心功能(重新導向、內容規則、存取控制)將無法運行。
- 所有 API 請求都尊重用戶的隱私,僅用於地理位置目的。

HTML 編寫的問題和答案:
<ul>
<li><strong>問題:</strong>這個 WordPress 外掛的主要功能是什麼?</li>
<li><strong>答案:</strong>這個外掛的主要功能包括基於國家的重新導向、有條件的內容短代碼、IP 响應緩存等。</li>

<li><strong>問題:</strong>這個外掛支持哪些 API 計劃?</li>
<li><strong>答案:</strong>這個外掛支持 Developer、Standard、Advanced 和 Security 四種 API 計劃。</li>

<li><strong>問題:</strong>如何可以在網站上顯示訪客的地理位置數據?</li>
<li><strong>答案:</strong>您可以使用提供的短代碼 [ipgeo country]、[ipgeo city] 等來輸出訪客的地理位置數據。</li>
</ul>

原文外掛簡介

IPGeolocation – Geo Redirect & Content Control is a powerful WordPress plugin that allows you to control how visitors interact with your site based on their geographic location.
The plugin uses the ipgeolocation.io API to determine a visitor’s country and other metadata, enabling advanced geo-based logic without slowing down your site.
Main Features

Country-based redirects (entire site, specific pages, or URL patterns)
Optional popup confirmation before redirect
Country-level access control (allow or block)
Conditional content shortcodes
Output visitor geolocation data via shortcode
Page and query-string exclusions
Redirect bypass and reset via URL parameters
Bot detection (search engines & social crawlers excluded)
Administrator-safe (admins are never redirected)
IP response caching using WordPress transients

Configuration
The plugin supports the following API plans from ipgeolocation.io:

Developer
Standard
Advanced
Security

Depending on the plan, additional security-related fields may be available.
Shortcodes
Display Single Geolocation Field
[ipgeo country]
[ipgeo city]
[ipgeo country_code]
[ipgeo latitude]
[ipgeo longitude]
Available fields include:
ip, city, state, country, country_code, zipcode, continent, latitude, longitude, currency, calling_code, languages, is_proxy, is_tor, is_anonymous, cloud_provider
Conditional Content (Show If Match)
[ipgeo_if country_code=”US,CA” logic=”OR”]
Visible to visitors from the US or Canada.
[/ipgeo_if]
Supported attributes:
* country
* country_code
* state
* city
* continent
* is_proxy
* is_tor
* is_cloud_provider
* is_anonymous
* proxy_type
* logic (AND / OR)
Conditional Content (Hide If Match)
[ipgeo_if_not country=”Germany”]
Hidden from visitors in Germany.
[/ipgeo_if_not]
Redirect Bypass
For testing or user control, redirects can be bypassed:

?geo_bypass=1 — bypass redirects for 30 days
?geo_reset=1 — reset the bypass cookie

External Services Used
This plugin relies on the ipgeolocation.io API to provide its core geolocation functionality.
API Features Used:
– Determines visitor country, city, state, continent, latitude/longitude, and more
– Detects proxy, VPN, Tor usage, and cloud providers
– Enables country-based redirects, content visibility rules, and access control
– Caches API responses for 24 hours per IP to reduce requests and improve performance
Important Notes:
– An ipgeolocation.io API key is required. You can obtain one by creating a free or paid account at ipgeolocation.io.
– Without the API, the plugin’s core features (redirects, content rules, access control) will not function.
– All API calls respect the user’s privacy and are only used for geolocation purposes.
Link to Terms of Use: ipgeolocation.io Terms
License
This plugin is licensed under the GPL v2 or later.

各版本下載點

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

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


1.0.0 | trunk |

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

  • Geo Redirect 》, 這個外掛可以為您的網站創建地理定位的 URL 重定向。非常適合創建簡單和複雜的重定向。, 這個外掛可以讓您為整個網站或特定頁面創建簡單的重定向。, 您也可...。
  • Geo Redirect 》只需從下拉選單中添加國家並填寫首選選項。, 您可以為切換語言或域名指定 URL 參數。, 說明:, , , 您擁有多語言的部落格,希望您的訪客根據其地理位置被引導...。
  • IP Address Approval 》IP地址批准系统提供了一种简单的方式,让你允许或阻止访问你的网站,以保护你的网站不受不必要的访问者干扰。你可以在公网网站和私人网络网站上都使用IP地址...。

文章
Filter
Mastodon