The FBI says over 1,000 hacked WordPress sites hid ransomware lures in Google. You can open yours and see a normal page.

Details

Firewall & login

Ban subnet / IP range

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

Last updated ( published )

You can blacklist a whole network range with CIDR notation, not only a single IP. Manual rules work in Free and Pro under Firewall → IP Management. Use this when abuse comes from many addresses in the same block.

Self-ban protection applies here too: you cannot blacklist a range that covers your own IP, the server IP, loopback addresses, or 0.0.0.0/0 / ::/0.

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, if you bypass self-ban checks with a different path (for example a bad filter). Stick to specific ranges.

Verify with Test IP (Pro)

On Pro, 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