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.

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.


  1. Install IP BAN either via the 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!



Installation Instructions
  1. Install IP BAN either via the 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!


སྤྱི་ཟླ་བཅུ་པ། 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.
སྤྱི་ཟླ་བརྒྱད་པ། 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.
སྤྱི་ཟླ་བཅུ་གཉིས་པ། 24, 2016
Good work team! It is exactly what i needed and you made a great job with it! Thank you!
སྤྱི་ཟླ་དགུ་པ། 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.
སྤྱི་ཟླ་གཉིས་པ། 7, 2017
does not work and does not block by IP
Read all 9 reviews

Contributors & Developers

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


Translate “IP Ban” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



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


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


  • Fix: Warning: Missing argument 2 for wp_kses() error message (2 posts) –


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


  • [Test] WordPress 4.0


  • [Test] WordPress 3.9.1


  • Fix: Notice: Undefined index: submit in ip-ban.php on line 37 –
  • Tested with 3.8.1


  • Fix: Too many redirects –


  • Update for WordPress 3.8


  • Update for WordPress 3.5.1


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


  • Update readme.txt.


  • First version.