WP-Ban
Banned visitors are served a custom message instead of your site. You can ban by IP address, IP range, host name, user agent or referrer URL, exclude specific addresses from ever being banned, and see how many times each banned visitor has tried to get in. Wildcards are supported throughout. Everyth
About this tool.
Banned visitors are served a custom message instead of your site. You can ban by IP address, IP range, host name, user agent or referrer URL, exclude specific addresses from ever being banned, and see how many times each banned visitor has tried to get in. Wildcards are supported throughout.
Everything is configured under Settings -> Ban , on three tabs: Stats for the attempt counters, Settings for the ban lists and the visitor IP options, and Templates for the banned message. The plugin will not let you ban the address, host name or user agent you are currently browsing with, so a wildcard that would lock you out of your own site is refused at save time and the screen says which entry it dropped.
Features
- Ban by IP address, IP range, host name, user agent or referrer URL
- Wildcards in every list except IP ranges and the exclude list
- IPv4 and IPv6, including IPv6 ranges
- An exclude list that wins over every other list
- Your own banned message, as a complete HTML document, with a live preview
- A sortable, paginated count of how many times each banned visitor has tried
- Self-ban protection that protects whoever is saving, not just a user called “admin”
Donations
I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks, I will really appreciate it. If not feel free to use it without any obligations.
Usage
Go to Settings -> Ban . The screen has three tabs and opens on Stats .
On the Settings tab, fill in the lists you want. Every list matches the whole value, so use * where you want a partial match: 192.168.1.* bans that whole block, EmailSiphon* bans every user agent starting with that name.
IP ranges are written as start-end , one per line. IPv4 and IPv6 are both supported, but a single range cannot mix the two.
The Templates tab holds the banned message on its own, because it is a whole HTML document and burying it under six textareas made the screen a wall.
The Stats tab is the attempt counters, twenty rows at a time, sortable by address or by attempts. Tick the rows you want cleared and use the bulk action, or tick Reset every IP ban stat and the total to start again.
All three tabs write the same wp_ban_options row, so saving one never disturbs what the other two hold.