[WordPress] 外掛分享: IP Locator

首頁外掛目錄 › IP Locator
600+
安裝啟用
★★★★★
5/5 分(1 則評價)
116 天前
最後更新
問題解決
WordPress 6.2+ PHP 8.1+ v4.3.0 上架:2020-04-01

內容簡介

定位器是 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 授權。

外掛標籤

開發者團隊

⬇ 下載最新版 (v4.3.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「IP Locator」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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!

延伸相關外掛

文章
Filter
Apply Filters
Mastodon