WordPress 7.1.2: critical core security fix. Update now, then check inactive themes and comments.

Details

Firewall & login

Ban subnet / IP range

Block a CIDR IP range in Security Ninja Pro using Firewall → IP Management and the Add IP rule dialog.

You can blacklist a whole network range with CIDR notation, not only a single IP. Use this when abuse comes from many addresses in the same block.

Steps

  1. Go to Security Ninja → Firewall → IP Management.
  2. Click Add IP rule.
  3. Enter one CIDR range per line, for example:

66.249.0.0/16

  1. Optionally add a Note.
  2. Select Blacklist.
  3. Click Save.

Add IP rule dialog with a CIDR blacklist range

CIDR examples

  • 192.168.1.0/24 blocks 192.168.1.0 through 192.168.1.255
  • 10.0.0.0/8 blocks 10.0.0.0 through 10.255.255.255
  • 172.16.0.0/12 blocks 172.16.0.0 through 172.31.255.255

A smaller prefix number covers a larger range. Be careful with broad public ranges. You can lock out legitimate traffic, including your own network.

Verify with Test IP

Use the Test IP field on IP Management (or the firewall tools area) to check whether a sample address is blocked.

Test IP confirming a subnet blacklist match

Enter an IP from the range and submit. The result should show that the address is blocked.

Still stuck? Get help or contact us.

Larger screenshot

Enlarged image