WP-IPIP #7 in Utilities
*WP-IPIP* is a WordPress plugin that tells you where the comment come from.
★ 8stars
84release downloads
≈10active sites
1forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/catscarlet/wp-ipip/releases/download/v3.1.1/wp-ipip_v3.1.1.zipFrom the readme
WP-IPIP
WP-IPIP 是一款根据 IP 显示评论来源地址的插件。插件使用 IPIP.net 免费版数据库。
版本说明
- 0.1 版本支持 DAT 数据库(停止维护)
- 0.2 - 2.0.0 支持 DATAX 数据库(停止维护)
- 3.0.0+ 支持 IPDB 数据库
安装与更新
手动安装
本插件未包含在 WordPress Plugin 仓库中,所以需要手动安装。
插件未在 WordPress 上保存任何数据,建议更新时删除旧插件。
以下安装方式二选一。
WordPress 原生上传安装
在 Release 中下载最新的 zip 包(注意不是Source code)。在 WordPress 中的 插件-安装插件 页面中,点击上方的上传插件,选择 zip 包并上传即可。
传统
(建议使用 WordPress 原生上传安装。但这个方法不会废弃)
将文件复制到 WordPress 的插件目录下即可,文件应该在 /wp-content/plugins/wp-ipip 目录下。
项目主要文件结构:
IPIP数据库安装和更新
IPIP 数据库文件路径:{插件路径}/ipipdotnet/ipipfree.ipdb,直接用新的数据库覆盖此文件即可。插件包中目前自带一份中文版数据库。
你可以在 IPIP 的官网下载最新版的数据库:
卸载
插件未在 WordPress 上保存任何额外文件或数据,使用 WordPress 的插件管理直接删除即可,亦可直接删除插件目录。
注意事项
插件使用的数据库文件需要在运行时载入内存,整个插件会占用约 4M 左右的内存。如果出现评论页面无法正确载入,或载入后页面功能失效的问题,请检查您服务器的内存限制。按照以往经验,不加载其他插件的 4.3.X 版本启动后会使用约 28M 内存,如果您的服务器对 PHP 运行内存限制为 32M 或者更低的话,将无法正常使用本插件。
请先确认自己的 PHP 运行环境是否有类似限制。
兼容性
PHP
至少 PHP 5.4 以上版本(自3.0.4版本开始使用部分语法糖)
WordPress
实测与 5.2.2 兼容
akisment
实测与插件 akisment 兼容
wp-useragent
实测与插件 wp-useragent-1.1.8 兼容
移动端
移动端于 v3.0.3 开始支持
IPIP 收费版
IPIP 收费版数据库未经测试。
链接
- IPIP, IPDB 格式官方解析代码:
License
Apache License
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| v3.1.1 | Jun 2, 2023 | wp-ipip_v3.1.1.zip | 21 |
| v3.1.0 | Dec 28, 2020 | wp-ipip_v3.1.0.zip | 21 |
| v3.0.4 | Dec 3, 2020 | wp-ipip_v3.0.4.zip | 7 |
| v3.0.3 | Sep 12, 2019 | wp-ipip_v3.0.3.zip | 13 |
| v3.0.2 | Apr 8, 2019 | — | — |
| 3.0.1 | Mar 18, 2019 | — | — |
| v3.0.0 | Mar 17, 2019 | — | — |
| v1.0.0 | Oct 21, 2018 | — | — |
| v0.2 | May 23, 2018 | — | — |
| v0.1.3 | May 23, 2018 | — | — |
| 0.1.2 | Sep 28, 2017 | wp-ipip_v0.1.2.zip | 10 |
| 0.1.1 | Mar 27, 2017 | wp-ipip.zip | 12 |
Active-site estimate ≈10 comes from the median of recent superseded releases. Method.