Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author IniLerm

    (@inilerm)

    Hi Vineeth, @vineethmp

    That’s an excellent question and a very valid feature request. Thank you for asking!

    You are absolutely right that managing large IP lists like Cloudflare’s is a common need. The good news is that the plugin fully supports IP ranges in CIDR format (like 103.21.244.0/22), which makes managing services like Cloudflare much easier. Instead of adding thousands of individual IPs, you can add their official ranges directly to the Whitelist or Manual Blocklist tabs.

    However, for importing a list in bulk, the most efficient method currently is via WP-CLI, which is perfect for these kinds of operations.

    Here’s how you can do it:

    1. Create a text file (e.g., cloudflare_ips.txt) containing the list of IP ranges, one per line. You can get the official list from Cloudflare’s website. For example:codeCode103.21.244.0/22 103.22.200.0/22 103.31.4.0/22 ...
    2. Use a command to add them to the whitelist:
      From your server’s command line, in your WordPress root directory, you can run this command to add all ranges from the file to the whitelist:codeBashcat cloudflare_ips.txt | xargs -n 1 wp advaipbl whitelist add
    3. To add them to the manual blocklist instead:
      You would use the block command:codeBashcat your_blocklist_file.txt | xargs -n 1 wp advaipbl block --reason="Custom Blocklist Import"

    That being said, we absolutely agree that having a simple “Import from file” button directly in the IP Management > Whitelist and Blocked IPs tabs would be a fantastic usability improvement. We’ve added this to our feature roadmap for a future release, as it would make managing large lists much more accessible for everyone.

    Thank you again for the great suggestion! Let us know if you have any other questions.

    Best regards.

    Thread Starter Vineeth Mohan

    (@vineethmp)

    That’s interesting! Thanks a lot 🙂

    Plugin Author IniLerm

    (@inilerm)

    Hi,

    I’m marking this thread as resolved. Feel free to open a new topic if you have further questions.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘IP lists’ is closed to new replies.