How to ban subnet mask IP range

Banning a range of IPs in the firewall is easy. This feature is particularly useful when you want to block a group of IPs that may be causing malicious activities on your website.

Step-by-Step Guide

1. Navigate to the Firewall tab in your WP Security Ninja dashboard.

2. Scroll down to the section labeled “Blacklist IPs”.

Blacklist IP range

3. In the input field, enter the IP range using a subnet mask. For example:

66.249.0.0/16

Additional Examples

You can also use different subnet masks to specify a more or less restrictive range. Here are some examples:

  • 192.168.1.0/24 – This will block all IPs from 192.168.1.0 to 192.168.1.255
  • 10.0.0.0/8 – This will block all IPs from 10.0.0.0 to 10.255.255.255
  • 172.16.0.0/12 – This will block all IPs from 172.16.0.0 to 172.31.255.255

Once you’ve entered the IP range, any IPs that match the specified range will be automatically blocked.

Verifying Blocked IPs

You can use the IP tester tool to verify that the correct IPs are being blocked.

IP subnet Blacklist range

Simply enter an IP address into the IP tester input box and click the submit button. If the IP is within the blocked range, the tool will confirm that it is indeed blocked.

Was this helpful?