• Resolved globalnerds

    (@globalnerds)


    I would like to list many blocks of whitelisted IP address (ranges for each of our offices).
    I see there is a way to list a range in the wp config, but I need a list of many ranges for example
    192.168.1.0/24
    192.161.3.0/24

    When I list more than one range in the wp config, it only picks up the first range:

    define( 'RSA_IP_WHITELIST', '192.168.1.0|192.168.1.24' );
    define( 'RSA_IP_WHITELIST', '192.168.3.0|192.168.3.24' );
    define( 'RSA_IP_WHITELIST', '192.168.4.0|192.168.4.24' );
    
Viewing 1 replies (of 1 total)
  • Tung Du

    (@dinhtungdu)

    When I list more than one range in the wp config, it only picks up the first range:

    It’s expected behavior because you can’t redefine a constant.

    You can whitelist multiple IP range like this:

    define( 'RSA_IP_WHITELIST', '192.168.1.0/24|192.161.3.0/24|192.161.4.0/24' );

    • This reply was modified 5 years ago by Tung Du.
Viewing 1 replies (of 1 total)
  • The topic ‘Lists of many IP address ranges’ is closed to new replies.