Problem with non-standard real IP source

[ad_1]

My hoster has server configuration, where real IP is HTTP_X_FORWARDED_FOR; also exists HTTP_X_REAL_IP, but it is NOT a real IP. Your plugin process HTTP_X_REAL_IP before HTTP_X_FORWARDED_FOR, so I get wrong result.

Also, your plugin gets HTTP_X_FORWARDED_FOR or HTTP_X_REAL_IP only when REMOTE_ADDR is not correct; but at my hoster’s configuration I have REMOTE_ADDR that contains formally correct, but non-real IP.

So, I need a hook for your get_ip() method to set arbitrary real IP, or for set non-standard real IP source, or for replace your get_ip() method.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer