How to Manually Blacklist an IP Address with WP Security Ninja
WP Security Ninja lets you manually block specific IP addresses from the Firewall tab. IP rules use one Add IP rule dialog for both blacklist and whitelist entries.
Steps to Blacklist an IP
- Go to Security Ninja → Firewall → IP Management.
- Click Add IP rule.
- Enter one IP address or CIDR range per line.
- Optionally add a Note (label for the rule).
- Select the Blacklist radio button.
- Click Save.
Any IP you save as Blacklist is denied access according to your firewall settings.
Important Note
If you accidentally enter your own IP address as both blacklist and whitelist, the whitelist takes precedence so you do not lock yourself out.
Blocking IP Ranges
You can also block a range of IPs by entering a subnet mask.
Whitelisting IPs
To allow an IP instead, use the same Add IP rule dialog and select the Whitelist radio button before saving. Whitelisted IPs keep access even when the firewall is active; their traffic may still be monitored.

