Title: IP Ban
Author: Sandor Kovacs
Published: <strong>September 9, 2012</strong>
Last modified: December 10, 2016

---

Search plugins

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

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

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

# IP Ban

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

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

 * [Details](https://mlt.wordpress.org/plugins/simple-ip-ban/#description)
 * [Reviews](https://mlt.wordpress.org/plugins/simple-ip-ban/#reviews)
 *  [Installation](https://mlt.wordpress.org/plugins/simple-ip-ban/#installation)
 * [Development](https://mlt.wordpress.org/plugins/simple-ip-ban/#developers)

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

## Description

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.

## Screenshots

 * [[
 * Settings page.

## Installation

 1. Install IP BAN either via the WordPress.org plugin directory, or by uploading the
    files to your server
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. That’s it. You’re ready to go!

## FAQ

No FAQ.

  Installation Instructions

 1. Install IP BAN either via the WordPress.org plugin directory, or by uploading the
    files to your server
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. That’s it. You’re ready to go!

## Reviews

![](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/) December 8, 2019

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/) October 15, 2017

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/) August 11, 2017

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/) December 24, 2016

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/) September 3, 2016

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/) February 7, 2017

does not work and does not block by IP

 [ Read all 9 reviews ](https://wordpress.org/support/plugin/simple-ip-ban/reviews/)

## Contributors & Developers

“IP Ban” is open source software. The following people have contributed to this 
plugin.

Contributors

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

[Translate “IP Ban” into your language.](https://translate.wordpress.org/projects/wp-plugins/simple-ip-ban)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/simple-ip-ban/), check
out the [SVN repository](https://plugins.svn.wordpress.org/simple-ip-ban/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/simple-ip-ban/) 
by [RSS](https://plugins.trac.wordpress.org/log/simple-ip-ban/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 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.

## Meta

 *  Version **1.3.0**
 *  Last updated **8 years ago**
 *  Active installations **2,000+**
 *  WordPress version ** 3.1.0 or higher **
 *  Tested up to **4.7.33**
 *  Language
 * [English (US)](https://wordpress.org/plugins/simple-ip-ban/)
 * Tags
 * [anti-spam](https://mlt.wordpress.org/plugins/tags/anti-spam/)[ip ban](https://mlt.wordpress.org/plugins/tags/ip-ban/)
   [protection](https://mlt.wordpress.org/plugins/tags/protection/)
 *  [Advanced View](https://mlt.wordpress.org/plugins/simple-ip-ban/advanced/)

## Ratings

 4 out of 5 stars.

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

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

[See all reviews](https://wordpress.org/support/plugin/simple-ip-ban/reviews/)

## Contributors

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

## Support

Got something to say? Need help?

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

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://sandorkovacs84.wordpress.com/)