Title: Ipdata Integration Plugin
Author: ipdatallc
Published: <strong>2020 年 5 月 8 日</strong>
Last modified: 2020 年 5 月 8 日

---

搜索插件

![](https://ps.w.org/ipdata/assets/banner-772x250.jpg?rev=2300542)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/ipdata/assets/icon.svg?rev=2300542)

# Ipdata Integration Plugin

 作者：[ipdatallc](https://profiles.wordpress.org/ipdatallc/)

[下载](https://downloads.wordpress.org/plugin/ipdata.zip)

 * [详情](https://cn.wordpress.org/plugins/ipdata/#description)
 * [评价](https://cn.wordpress.org/plugins/ipdata/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/ipdata/#developers)

 [支持](https://wordpress.org/support/plugin/ipdata/)

## 描述

The plugin detects the user’s location using the Ipdata API and allows you to block
access to your site for specific countries (by redirecting visitors from these countries
to a specified page or URL).

The plugin also provides a handful of useful shortcodes that allows you to use the
detected location data in your posts.

#### Global Settings

Install the plugin, navigate to the Ipdata menu item on the left. This will open
the main Settings page, where you can define global redirection settings.

 * IpData API Key – enter your API key obtained from ipdata.co. Please note that
   the plugin won’t work without the key.
 * IpData API Timeout, sec – enter API timeout in seconds (default – 5 s).
 * Blocked countries – a list of globally blocked countries. All visitors from the
   specified countries will be redirected to the page specified below.
 * Page to Redirect – here you can set the page that will be shown to all visitors
   from the globally blocked countries. It may contain an explanation for why the
   user is blocked and redirected there.
 * Rules section – here you can add an unlimited number of redirection rules for
   specific countries.

#### Post/Page Specific Settings

The plugin adds a metabox to posts and pages, where you can define blocking/redirection
rules for this particular post or page. It contains the same settings (except for
the API key and Timeout) but they will be applied to this specific post only.

#### Shortcodes

The plugin provides the following shortcodes:

 * [ipdata_continent] – User’s continent code (e.g. NA, EU etc.)
 * [ipdata_country] – User’s country code (e.g. US, UK etc.)
 * [ipdata_region] – User’s region name (e.g. New York, England etc.)
 * [ipdata_city] – User’s city name (e.g. New York, London etc.)
 * [ipdata_location] – User’s latitude/longitude separated by slash.

#### Filters

The plugin provides a number of filters that can be used for customizations. Please
contact [Support](https://cn.wordpress.org/plugins/ipdata/support@ipdata.co?output_format=md)
for details.

## 屏幕截图

 * [[
 * Global Settings page.
 * [[
 * Post/page metabox.
 * [[
 * Shortcodes.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Ipdata Integration Plugin」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ ipdatallc ](https://profiles.wordpress.org/ipdatallc/)

[帮助将「Ipdata Integration Plugin」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/ipdata)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/ipdata/)，查看[SVN仓库](https://plugins.svn.wordpress.org/ipdata/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/ipdata/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/ipdata/)。

## 更新日志

 * 1.0.0: First production version.

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**6 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **5.4.19**
 *  语言
 * [English (US)](https://wordpress.org/plugins/ipdata/)
 * 标签
 * [block](https://cn.wordpress.org/plugins/tags/block/)[GeoIP](https://cn.wordpress.org/plugins/tags/geoip/)
   [geotarget](https://cn.wordpress.org/plugins/tags/geotarget/)[ip](https://cn.wordpress.org/plugins/tags/ip/)
 *  [高级视图](https://cn.wordpress.org/plugins/ipdata/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/ipdata/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/ipdata/reviews/)

## 贡献者

 *   [ ipdatallc ](https://profiles.wordpress.org/ipdatallc/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/ipdata/)