
內容簡介
IP2Location Tags 可以透過 IP 位址查找,幫助您根據不同國家和地區的地理位置為網站訪客提供特定內容。這個外掛可以偵測訪客的 IP 位址並將其轉換為地理位置資訊,進而提供與他們最相關的本地化資訊或內容,讓訪客參與度更高。
主要功能
顯示訪客的資訊如下:
國家代碼
國家名稱
國旗
地區名稱
城市名稱
緯度和經度
郵遞區號
ISP
域名
時區
網路速度
IDD 代碼
區號
天氣站代碼和名稱
MNC、MCC 和行動載波名稱
高度
使用類型
地址類型
分類
基於國家或地區自訂頁面內容
支援 IPv4 和 IPv6
此外掛支援 IP2Location IP 地理位置 BIN 資料和 IP 地理位置查找的網路服務。如果您使用 BIN 資料,您可以每月使用設定頁面上的精靈程式更新 BIN 資料,以獲得最準確的結果。或者,您也可以手動下載和更新下面的 BIN 資料檔案:
BIN 檔案下載: IP2Location 商業資料庫 | IP2Location LITE 資料庫(免費版)
如果您使用 IP2Location IP 地理位置網路服務,請造訪 IP2Location Web 服務 進行詳細說明。
使用變量標籤獲得訪客的位置資訊
使用範例
顯示訪客的 IP 位址、國家名稱、地區名稱和城市名稱。
您的 IP 位址是 {ip:ipAddress}
您在 {ip:countryName},{ip:regionName},{ip:cityName}
地理定位:使用 IP2Location 標籤自訂文章內容
顯示特定國家內容的語法
[ip:XX[,XX]..[,XX]]在此輸入您的內容。[/ip]
註:XX 是兩個字母的 ISO-3166 國家代碼。
範例
僅為美國或加拿大訪客顯示內容。
[ip:US,CA]只有從美國或加拿大訪問的訪客可以查看此行。[/ip]
顯示特定國家和地區內容的語法
[ip:XX:YY[,XX:YY]..[,XX:YY]]在此輸入您的內容。[/ip]
註:XX 是兩個字母的 ISO-3166 國家代碼,YY 是 ISO-3166-2 分區代碼。
範例
僅為加州或紐約訪客顯示內容。
[ip:US:CA,US:NY]只有從加州或紐約訪問的訪客可以查看此行。[/ip]
隱藏特定國家內容的語法
[ip:*,-XX[,-XX]..[,-XX]]在此輸入您的內容。[/ip]
註:XX 是兩個字母的 ISO-3166 國家代碼。
範例
除了越南訪客外,所有訪客都可以看到此行。
[ip:*,-VN]除了越南訪客外,所有訪客都可以看到此行。[/ip]
隱藏特定國家和地區內容的語法
[ip:*,-XX:YY[,-XX:YY]..[,-XX:YY]]在此輸入您的內容。[/ip]
註:XX 是兩個字母的 ISO-3166 國家代碼,YY 是 ISO-3166-2 分區代碼。
範例
除了加州和紐約訪客外,所有訪客都可以看到此行。
[ip:*,-US:CA,-US:NY]除了加州和紐約訪客外,所有訪客都可以看到此行。[/ip]
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
IP2Location Tags helps you to serve specific content to website visitors based on geographic location for different countries and regions via IP address lookup.
This plugin provides a relatively easy way to detect visitors’ IP addresses and translate it into geolocation information, and then keep visitors better engaged with localized information or content that’s most relevant to them.
Key Features
Displays visitor’s’ information such as
Country code
Country name
Country flag
Region name
City name
Latitude and longitude
ZIP code
ISP
Domain name
Time zone
Net speed
IDD code
Area code
Weather station code & name
MNC, MCC, mobile carrier name
Elevation
Usage type
Address type
Category
Customize the page content based on country or region
Supports IPv4 and IPv6
This plugin supports both IP2Location IP geolocation BIN data and web service for IP geolocation lookup. If you are using the BIN data, you can update the BIN data every month by using the wizard on the settings page for the most accurate result. Alternatively, you can also manually download and update the BIN data file using the below links:
BIN file download: IP2Location Commercial database | IP2Location LITE database (free edition)
If you are using the IP2Location IP geolocation web service, please visit IP2Location Web Service for details.
Get visitor’s location information with Variable Tag
Usage example
Display visitor’s IP address, country name, region name and city name.
Your IP is {ip:ipAddress}
You are in {ip:countryName}, {ip:regionName}, {ip:cityName}
Geo-targeting: Customize the post content with IP2Location Tag
Syntax to show content for specific country
[ip:XX[,XX]..[,XX]]Your content here.[/ip]
Note: XX is a two-character ISO-3166 country code.
Example
To show the content for United States or Canada visitors only.
[ip:US,CA]Only visitors from United States or Canada can view this line.[/ip]
Syntax to show content for specific country and region
[ip:XX:YY[,XX:YY]..[,XX:YY]]Your content here.[/ip]
Note: XX is a two-character ISO-3166 country code and YY is a ISO-3166-2 sub-division code.
Example
To show the content for California or New York visitors only.
[ip:US:CA,US:NY]Only visitors from California or New York can view this line.[/ip]
Syntax to hide the content from specific country
[ip:*,-XX[,-XX]..[,-XX]]Your content here.[/ip]
Note: XX is a two-character ISO-3166 country code.
Example
All visitors will be able to see the line except visitors from Vietnam.
[ip:*,-VN]All visitors will be able to see this line except visitors from Vietnam.[/ip]
Syntax to hide the content from specific country and region
[ip:*,-XX:YY[,-XX:YY]..[,-XX:YY]]Your content here.[/ip]
Note: XX is a two-character ISO-3166 country code and YY is a ISO-3166-2 sub-division code.
Example
All visitors will be able to see the line except visitors from California.
[ip:*,-US:CA]All visitors will be able to see this line except visitors from California.[/ip]
More Information
Please visit us at https://www.ip2location.com
