Tag: X-Forwarded-For
-
FusionReactor and Forwarded Headers
In some cases, FusionReactor may be behind a load balancer or CDN, or any other type of proxy that updates the source IP as seen by the server. It helps to see where the requests are actually originating from. For that, FusionReactor has an option for this: http://www.fusion-reactor.com/support/kb/frs-351/ See the Requests>Settings>Proxy, which lets you tell…
-
Testing http header IP forwarding
I need to determine what the application sees versus what is being sent, these scripts helped me see the discrepancy and validate the change once resolved: <?php header(‘Expires: 0’); // Proxies. header(‘Cache-Control: no-store, no-cache, must-revalidate’); // HTTP 1.1. header(‘Cache-Control: post-check=0, pre-check=0’, FALSE); header(‘Pragma: no-cache’); // HTTP 1.0. $client = @$_SERVER[‘HTTP_CLIENT_IP’]; $forward = @$_SERVER[‘HTTP_X_FORWARDED_FOR’]; $remote =…