How to ban subnet mask IP range

Banning a range of IPs in the firewall is a straightforward process that can be invaluable for protecting your website from malicious activities.

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:

Additional Examples

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

  • – This will block all IPs from to
  • – This will block all IPs from to
  • – This will block all IPs from to

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?