Title: IP Ban
Author: Sandor Kovacs
Published: <strong>2012 年 9 月 9 日</strong>
Last modified: 2016 年 12 月 10 日

---

搜索插件

![](https://ps.w.org/simple-ip-ban/assets/banner-772x250.png?rev=596561)

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

![](https://s.w.org/plugins/geopattern-icon/simple-ip-ban_c9b999.svg)

# IP Ban

 作者：[Sandor Kovacs](https://profiles.wordpress.org/almos20/)

[下载](https://downloads.wordpress.org/plugin/simple-ip-ban.1.3.0.zip)

 * [详情](https://cn.wordpress.org/plugins/simple-ip-ban/#description)
 * [评价](https://cn.wordpress.org/plugins/simple-ip-ban/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/simple-ip-ban/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/simple-ip-ban/#developers)

 [支持](https://wordpress.org/support/plugin/simple-ip-ban/)

## 描述

UPDATE1: For the admin user the plugin it’s not active.

UPDATE2: Added Ip Range feature for ip list.

IP Ban is a security plugin, protects your site accessing from unwanted ip addresses
or user agents. You can add ip addresses or user agents creating your own black 
list.

It also good to protect your site from unwanted crawlers, which uses your resource
and bandwidth. Just add an ip address or user agent and things will happened.

After the plugin activation, in the SETTINGS menu you’ll see the Simple IP BAN submenu.
Here you have 3 textareas:

 1. Add ip address or range here.
 2. Add user agents here.
 3. Define external url . All spammers will be redirected to this url.

## 屏幕截图

[⌊Settings page.⌉⌊Settings page.⌉[

Settings page.

## 安装

 1. Install IP BAN either via the WordPress.org plugin directory, or by uploading the
    files to your server
 2. 通过WordPress的的“Plugins”菜单激活插件
 3. That’s it. You’re ready to go!

## 常见问题

No FAQ.

  Installation Instructions

 1. Install IP BAN either via the WordPress.org plugin directory, or by uploading the
    files to your server
 2. 通过WordPress的的“Plugins”菜单激活插件
 3. That’s it. You’re ready to go!

## 评价

![](https://secure.gravatar.com/avatar/5faaf2cae187224ee51f6ece9b1bbc5470c94b5ace7796d2dbf594c62f6ed807?
s=60&d=retro&r=g)

### 󠀁[Simple and works well](https://wordpress.org/support/topic/simple-and-works-well-33/)󠁿

 [moonyell](https://profiles.wordpress.org/moonyell/) 2019 年 12 月 8 日

Hope this plugin may keep updating.

![](https://secure.gravatar.com/avatar/7d857f68161054f3a85b5d57a267c780fa80848bbe0888ed52411e5a276090e9?
s=60&d=retro&r=g)

### 󠀁[Works. Simple and lightweight plugin.](https://wordpress.org/support/topic/does-not-work-it-will-block-every-user/)󠁿

 [wp_ntnguy](https://profiles.wordpress.org/wp_ntnguy/) 2017 年 10 月 15 日

I previously rated this plugin as 1 star because it locked me out of my own website.
It turns out, it was because I was on the wrong Wi-Fi network. Now that I got it
to work, I am giving it 5 stars. A simple and lightweight plugin and it is exactly
what I was looking for to ban IP addresses.

![](https://secure.gravatar.com/avatar/b3866c98d1682db44192bf1eb1bc27c1e7e5e6c8a4d35a2f58b5d7630968a1fa?
s=60&d=retro&r=g)

### 󠀁[DON’T USE if you want to log in to your site](https://wordpress.org/support/topic/dont-use-if-you-want-to-log-in-to-your-site/)󠁿

 [stevedemo1](https://profiles.wordpress.org/stevedemo1/) 2017 年 8 月 11 日

Locked me out of my site, I had to FTP in and delete the plugin. Everything looks
fine until you log out then BAM it blocked me. It may have worked at one time but
it doesn’t work now.

![](https://secure.gravatar.com/avatar/6720c41dde0b9a70a2f18bb4e1df4cd4f98651a996090c0e54965afc648adbb8?
s=60&d=retro&r=g)

### 󠀁[5 stars](https://wordpress.org/support/topic/5-stars-138/)󠁿

 [idmesspass](https://profiles.wordpress.org/idmesspass/) 2016 年 12 月 24 日

Good work team! It is exactly what i needed and you made a great job with it! Thank
you!

![](https://secure.gravatar.com/avatar/bf5d3e4656f3cf110ca6320228c2fa22a681bbb8ac873adbb00b1eef97d2a7a7?
s=60&d=retro&r=g)

### 󠀁[Works and is very easy to use](https://wordpress.org/support/topic/works-and-is-very-easy-to-use/)󠁿

 [Redneval](https://profiles.wordpress.org/redneval/) 2016 年 9 月 3 日

The simple ip ban is purely simple. Very easy to understand. You just type the ip
you want to ban and that very ip get banned. No criteria, filters or anything complicated.
You just need something like limit-login-attempts-like widget or tool or whatever
to find those suspicious ip. Then you type those ip to block them from attempting
to login your site again.

![](https://secure.gravatar.com/avatar/9c1d3a0a896c7ebf2a5cc0c250737de06bfc91ea9c4a680990a57cf71825d3c6?
s=60&d=retro&r=g)

### 󠀁[does not work](https://wordpress.org/support/topic/does-not-work-730/)󠁿

 [Den999](https://profiles.wordpress.org/den999/) 2017 年 2 月 7 日

does not work and does not block by IP

 [ 阅读所有9条评价 ](https://wordpress.org/support/plugin/simple-ip-ban/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Sandor Kovacs ](https://profiles.wordpress.org/almos20/)

[帮助将「IP Ban」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/simple-ip-ban)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.3.0

 * [Test] WordPress 4.7
 * [Fix] Plugin may not ban well on all hosting providers and on wide ranges of 
   IP
    (like 125.80.0.0 125.87.255.255), due to the fact that ip2long can return
   negative values in some cases. (Reported by Fernando)
 * [Test] WordPress 4.4.1

#### 1.2.6

 * [Test] WordPress 4.3.2
 * [Test] WordPress 4.3.1
 * [Test] WordPress 4.3.0
 * [Test] WordPress 4.2.1

#### 1.2.5

 * Fix: Warning: Missing argument 2 for wp_kses() error message (2 posts) – https://
   wordpress.org/support/topic/warning-missing-argument-2-for-wp_kses-error-message

#### 1.2.4

 * Add CSRF protection and sanitize user input
 * [Test] WordPress 4.0.1

#### 1.2.3

 * [Test] WordPress 4.0

#### 1.2.2

 * [Test] WordPress 3.9.1

#### 1.2.1

 * Fix: Notice: Undefined index: submit in ip-ban.php on line 37 – https://wordpress.
   org/support/topic/notice-undefined-index-submit-in-ip-banphp-on-line-37
 * Tested with 3.8.1

#### 1.2.0

 * Fix: Too many redirects – https://wordpress.org/support/topic/too-many-redirects-
   22

#### 1.1.8

 * Update for WordPress 3.8

#### 1.1.1

 * Update for WordPress 3.5.1

#### 1.1.

 * Add IP Range to the banned IPs list. ex: 82.11.22.100-82.11.22-177
 * For Admin user it’s not active
 * Added checkbox: enable / disable redirection for logged in users ( others than
   admin )

#### 1.0.1

 * Update readme.txt.

#### 1.0

 * First version.

## 额外信息

 *  版本 **1.3.0**
 *  最后更新：**9 年前**
 *  活跃安装数量 **2,000+**
 *  WordPress 版本 ** 3.1.0 或更高版本 **
 *  已测试的最高版本为 **4.7.33**
 *  语言
 * [English (US)](https://wordpress.org/plugins/simple-ip-ban/)
 * 标签
 * [anti-spam](https://cn.wordpress.org/plugins/tags/anti-spam/)[ip ban](https://cn.wordpress.org/plugins/tags/ip-ban/)
   [protection](https://cn.wordpress.org/plugins/tags/protection/)
 *  [高级视图](https://cn.wordpress.org/plugins/simple-ip-ban/advanced/)

## 评级

 4 星（最高 5 星）。

 *  [  6 条 5 星评价     ](https://wordpress.org/support/plugin/simple-ip-ban/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/simple-ip-ban/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/simple-ip-ban/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/simple-ip-ban/reviews/?filter=2)
 *  [  2 条 1 星评价     ](https://wordpress.org/support/plugin/simple-ip-ban/reviews/?filter=1)

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

[查看全部评论](https://wordpress.org/support/plugin/simple-ip-ban/reviews/)

## 贡献者

 *   [ Sandor Kovacs ](https://profiles.wordpress.org/almos20/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/simple-ip-ban/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://sandorkovacs84.wordpress.com/)