0

I'm using a CDN and a firewall that sends the visitors' IP through a specific $_SERVER var. The goal is to avoid changing all the files through the CMS I'm using.

My problem is that since I'm using the firewall, people are not redirected as they should and records of IP are false because REMOTE_ADDR is changed by the firewall.

If it is not possible or I shouldn't do it, can someone explain why?

EDIT: you can using PHP. For example

$_SERVER['HTTP_X_FORWARDED_FOR'] = $_SERVER['VAR_NAME'];
hellodracon
  • 165
  • 1
  • 12

0 Answers0