• Resolved Liang

    (@liang1216)


    Hi there, Thank you for creating such amazing plugins.

    I have used it for a long time, and it runs well. But recently, my hosting service provider started to support IPV6, and they seem to use it as the primary connection.

    This cause the Whitelist IP features not to work anymore, as if I input the IPV6 IP, it will pop out errors. Further, I suspect the Whitelist IP features are only supported for IPV4 IP.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Liang

    (@liang1216)

    Here is the error code from the logs for further and more accessible support.
    2022-10-16 07:10:39 – Alert – The remote website encountered the following error: Unauthorized access (invalid remote IP address ((IPV6))) – https://link

    // Remark
    I have removed the IPV6 IP because of security issues.

    • This reply was modified 2 years, 4 months ago by Liang.
    Plugin Author Alexandre Froger

    (@frogerme)

    Hello!

    It is possible to alter the authorization mechanism using the provided hooks in a custom plugin, for example:

    
    add_action( 'wprus_loaded', 'my_plugin_wprus_loaded', 10, 0 );
    function my_plugin_wprus_loaded() {
    	add_filter( 'wprus_is_authorized_remote','ipv6_wprus_is_authorized_remote');
    }
    
    function ipv6_wprus_is_authorized_remote( $is_authorized_remote, $request_method, $remote_addr, $ip_whitelist ) {
    
    	// Logic to authorize IPV6
    
    	return $is_authorized_remote;
    }
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘IPV6 Whitelist IP Configuration’ is closed to new replies.