[WordPress] 外掛分享: IP Locator

前言介紹

  • 這款 WordPress 外掛「IP Locator」是 2020-04-01 上架。
  • 目前有 600 個安裝啟用數。
  • 上一次更新是 2025-04-14,距離現在已有 19 天。
  • 外掛最低要求 WordPress 6.2 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 8.1 以上。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

hosterra | pierrelannoy |

外掛標籤

flag | country | language | geolocation |

內容簡介

定位器是 WordPress 的國家和語言檢測工具。它快速、可靠且即插即用。

它可以檢測和呈現每位訪客的國家、主要語言和國旗。它提供:

強大、準確和超快速的 IP 和國家檢測;
許多短代碼來顯示國家名稱、語言和國旗(表情符號或向量圖);
一個短代碼用於條件性地隱藏或顯示字符串或其他短代碼;
一個 CSS 修改器,將國家特定的類添加到您站點的 body 標籤中;
一個自動系統,始終保持最新的狀態(不需要 API 金鑰,也不需要手動導入 IP 數據文件);
為插件/主題開發人員提供的全功能 API。

有關詳細信息,您可以瀏覽短代碼列表或API 描述(面向開發人員)。

IP 定位器也可以用於報告以下主要項目和特徵:

KPI:偵測到的國家和語言數量,訪問統計和偵測比率;
具有公共 IP 的真實用戶的國家;
具有公共 IP 的真實用戶的語言;
指標變化率;
指標分布;
每個渠道的完整國家列表;
每個客戶端的完整國家列表(需要免費的Device Detector 插件)。

從技術上講,IP 定位器:

可在專用或共享服務器上工作;
即使在代理或負載平衡器後面,也可以檢測源 IP;
可以使用 AWS CloudFront、Cloudflare 和 Apache mod_geoip 加快檢測速度;
本地支援 APCu 緩存(1) 和所有其他專用對象緩存機制,如 Memcached 或 Redis;
在頁面呈現時間上具有最小的足跡;
在後台運行其數據更新,對網站速度沒有任何影響;
與多站點完全兼容;
本地支援名稱和語言本地化(2)。

(1):如果要在 IP 定位器中使用,必須在您的服務器上啟用 APCu。

(2):如果要在 IP 定位器中使用,必須在您的服務器上啟用 PHP Intl 擴展。

IP 定位器使用我自己維護並僅通過我的伺服器發布的 IP 數據。數據獲得 CC0 授權。
IP 定位器定期訪問此服務(如果選項已勾選)以維持數據的最新版本。

IP 定位器支持廣泛的 WP-CLI 命令,包括:

獲取位置詳情:請參閱 wp help location describe 了解詳細信息;
顯示 IP 定位器狀態:請參閱 wp help location status 了解詳細信息;
切換主要設置:請參閱 wp help location settings 了解詳細信息;
顯示位置和語言統計信息:請參閱 wp help location analytics 了解詳細信息。

有關於 IP 定位器 WP-CLI 命令的完整說明,請閱讀此指南。

IP 定位器是 PerfOps One 的一部分,PerfOps One 是一套免費且開源的 WordPress 插件套件,專注於可觀察性和運營效能。

IP 定位器由我自己精心維護的 IP 數據支持,並僅在 IP 定位器專用的伺服器上發布。數據有 CC0 授權。

原文外掛簡介

IP Locator is a country and language detection tool for WordPress. It is fast, reliable and plug & play.
It can detect and render the country, the main language and the country flag of each visitor of your site. It provides:

a strong, accurate and ultra-fast IP and country detection;
many shortcodes to display country names, languages and flags (emoji or vectorized);
a shortcode to conditionally hide or show strings or other shortcodes;
a CSS modifier to add a country-specific class to the body tag of your site;
an automatic system to be always up to date (no API key, no IP data files to manually import);
a full-featured API for plugins / themes developers.

For full details, you can browse the shortcodes list or the API description (for developers).
IP Locator can be used too to report the following main items and characteristics:

KPIs: number of detected countries and languages, accesses breakdown and detection ratio;
countries for real humans with public IPs;
languages for real humans with public IPs;
metrics variations;
metrics distributions;
full list of countries per channel;
full list of countries per client (requires the free Device Detector plugin).

Technically, IP Locator:

works on dedicated or shared servers;
can detect the source IP even behind proxies or load-balancers;
can use AWS CloudFront, Cloudflare and Apache mod_geoip to speed-up detection;
natively supports APCu caching(1) and all other dedicated object caching mechanisms, like Memcached or Redis;
has a minimal footprint in the page rendering time;
runs its data updates in background, without impact on the website speed;
is fully compatible with multisites;
natively supports names and languages localizations(2).

(1): APCu needs to be activated on your server if you want to use it in IP Locator.
(2): PHP Intl extension needs to be activated on your server if you want to use it in IP Locator.

IP Locator uses IP data I curate myself and I publish via my own servers exclusively for IP Locator. Data is CC0 licensed.
IP Locator accesses this service on a regular basis (if the option is checked) to maintain an up-to-date version of the data.

IP Locator supports an extensive set of WP-CLI commands to:

get location detail: see wp help location describe for details;
display IP Locator status: see wp help location status for details;
toggle on/off main settings: see wp help location settings for details;
display location and languages statistics: see wp help location analytics for details.

For a full help on WP-CLI commands in IP Locator, please read this guide.

IP Locator is part of PerfOps One, a suite of free and open source WordPress plugins dedicated to observability and operations performance.

IP Locator is a free and open source plugin for WordPress. It integrates many other free and open source works (as-is or modified). Please, see ‘about’ tab in the plugin settings to see the details.
Developers
If you’re a plugins / themes developer and want to take advantage of the detection features of IP Locator, visit the GitHub repository of the plugin to learn how to use it.
Support
This plugin is free and provided without warranty of any kind. Use it at your own risk, I’m not responsible for any improper use of this plugin, nor for any damage it might cause to your site. Always backup all your data before installing a new plugin.
Anyway, I’ll be glad to help you if you encounter issues when using this plugin. Just use the support section of this plugin page.
Privacy
This plugin, as any piece of software, is neither compliant nor non-compliant with privacy laws and regulations. It is your responsibility to use it – by activating the corresponding options or services – with respect for the personal data of your users and applicable laws.
This plugin doesn’t set any cookie in the user’s browser.
This plugin may handle personally identifiable information (PII). If the GDPR or CCPA or similar regulation applies to your case, you must adapt your processes (consent management, security measure, treatment register, etc.).
Donation
If you like this plugin or find it useful and want to thank me for the work done, please consider making a donation to La Quadrature Du Net or the Electronic Frontier Foundation which are advocacy groups defending the rights and freedoms of citizens on the Internet. By supporting them, you help the daily actions they perform to defend our fundamental freedoms!

各版本下載點

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

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


1.0.1 | 1.0.2 | 1.0.3 | 1.0.4 | 1.0.5 | 1.0.6 | 2.0.0 | 2.1.0 | 2.2.0 | 3.0.0 | 3.1.0 | 3.1.1 | 3.1.2 | 3.2.0 | 3.3.0 | 3.4.0 | 3.4.1 | 3.5.0 | 3.6.0 | 3.7.0 | 3.7.1 | 3.8.0 | 3.9.0 | 4.0.0 | 4.1.0 | 4.2.0 | 4.2.1 | trunk | 3.10.0 | 3.10.1 | 3.10.2 | 3.10.3 | 3.11.0 |

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

  • Loco Translate 》Loco Translate 提供在瀏覽器中編輯 WordPress 翻譯文件和與自動翻譯服務集成的功能。, 它還為開發人員提供 Gettext/本地化工具,例如提取字符串和生成模板。...。
  • Polylang 》ts, Polylang is developed by the Polylang team with the help of numerous contributors., If you want to contribute or report an issue, please visit ...。
  • Translate WordPress with GTranslate 》Translate WordPress with GTranslate外掛使用 Google Translate 自動翻譯服務,讓您的 WordPress 網站多語言化,並發揮 Google 的力量。有103種語言可供選擇...。
  • Translate WordPress – Google Language Translator 》Google Language Translator 外掛現已經成為 GTranslate 家族的一員!, GTranslate 自 2008 年以來一直是一家領先的網站翻譯服務提供商,為全球超過 500,000 ...。
  • Translate WordPress and go Multilingual – Weglot 》Weglot Translate是領先的WordPress翻譯外掛,全球有超過60,000個使用者信任。您可以在幾分鐘內將WordPress網站翻譯成110多種語言,無需編碼即可實現多語言。...。
  • Ray Enterprise Translation 》Ray Enterprise Translation 提供方便的基於雲端的本地化和WordPress翻譯,通過簡化創建和維護多語言網站的過程。其功能包括機器翻譯、專業翻譯和社區翻譯解...。
  • WPBakery Visual Composer & qTranslate-X 》這個外掛可以讓 qTranslate-X 多語言工具運作於 WPBakery Visual Composer 外掛程式中。, 需要 qTranslate-X 版本 3.3 或者 alpha 預發行版 以上版本。, 這個...。
  • Translate WordPress with ConveyThis 》ConveyThis Translate 是最精確、最快速、最容易使用的語言外掛,可將您的 WordPress 網站翻譯成超過 120 種語言!安裝 ConveyThis Translate 只需幾個簡單的...。
  • Bogo 》https://ideasilo.wordpress.com/bogo/, Bogo 是一個簡單易用的 WordPress 多語言插件。, WordPress 自身就具備本地化功能,可以讓您在除英語外的另一種語言...。
  • Multilingual Contact Form 7 with Polylang 》這個外掛可以通過使用 Polylang 和其字串翻譯功能,在多語言頁面上使用 Contact Form 7 表單。, 與其他解決方案不同,您不需要為每種語言創建一個表單,而是...。
  • Admin Locale 》這個外掛提供了在網站上以某種語言運行(例如阿拉伯語),並在管理面板中使用另一種語言(例如英語)的能力。, 只需前往「設定」»「一般」,然後選擇您...。
  • Language Fallback 》從WordPress 4.3開始,您可以在您的WordPress安裝中使用像“Deutsch (Sie)”(正式德語)這樣的語言。但是,如果您使用的主題或外掛沒有這種語言的...。
  • Multisite Language Switcher 》這是一個簡單、強大且易於使用的 WordPress 多語言外掛程式,可以為 WordPress 多網站 安裝增加多語言支援,例如多個子網域或資料夾(如果您需要跨多個網域建...。
  • Hreflang Manager – Hreflang Implementation for International SEO 》Hreflang Manager 外掛提供了一個簡單且可靠的方法,在 WordPress 中實現 hreflang 功能。, 要了解 hreflang 的技術用法,請參閱 Google 提供的官方文件。, P...。
  • Flag Icons 》此外掛可讓您在網站上加入國旗圖示以及可指定的鏈結,可藉由選擇所需的位置或使用簡碼實現。, 第二版支援 Google 翻譯圖示!, 您只需選擇位置、旗幟以及新增...。

文章
Filter
Apply Filters
Mastodon