Great question. The syntax you posted (SecRule REMOTE_ADDR…) is for ModSecurity (an Apache server module), not for this plugin. If you paste that into our WAF settings, it will not work because our engine does not read ModSecurity rules.
How to block an IP Range in this plugin (The Easy Way):
You don’t need complex code! We have a dedicated tool for this:
- Go to Security > IP Management > Blocked IPs.
- In the “Manually Block IP” box, simply type the CIDR range:
21.0.0.0/8
- Click Block IP.
That’s it! The plugin will handle the math to block every IP in that range automatically (and even sync it to .htaccess/Cloudflare if you have those enabled).
About the WAF Tab:
The “Firewall (WAF)” tab in our plugin is designed for blocking URL patterns and Text (like SQL injections or bad keywords), not for IP addresses. For IPs, always use the “IP Management” tab.
Best regards,
Advancedr IP Blocker Team
Bonus Tip for Advanced Control (Example):
If you only want to block that IP range from specific areas (like the login page) instead of the whole site, you can use our Advanced Rules Engine:
- Go to Security > Blocking Rules > Advanced Rules.
- Click Add New Rule.
- Name: Block Range on Login
- Condition 1: IP Range Is 21.0.0.0/8
- Click AND to add a second condition.
- Condition 2: Request URI Contains wp-login.php
- Action: Block (or Challenge if you want to give them a chance).
This gives you surgical precision that simple IP blocking lists can’t offer!
-
This reply was modified 1 month, 2 weeks ago by
IniLerm.