Does anybody know how to work with local IP address with PHP but behind a firewall or perhaps the problem is a proxy?
More specifically, I am working on a webpage for work where I want a link to only appear on three computers based on some unique identifier. The trouble I seem to run into is the fact that we are operating from behind a firewall so I only ever get the same IP address no matter how I request it.
When I have researched local IP address and all the variations, I am always returning the same "local IP address" no matter which computer I am on. I have tried seeing if it was possible to do MAC address, or some other single computer specific information, but I have not had any luck.
Ignoring specific formatting, here is something like what I am trying to do:
$localip = $_SERVER["HTTP_CLIENT_IP"]
if ($localip == xxx.xxx.xxx.xxx) {print "<a href='link.php'>Link Title</a>";}
I have already reviewed and tried every option on this page: http://us.php.net/manual/fr/reserved.variables.server.php
Any suggestions? All possible leads and information are greatly appreciated! Thanks!
More specifically, I am working on a webpage for work where I want a link to only appear on three computers based on some unique identifier. The trouble I seem to run into is the fact that we are operating from behind a firewall so I only ever get the same IP address no matter how I request it.
When I have researched local IP address and all the variations, I am always returning the same "local IP address" no matter which computer I am on. I have tried seeing if it was possible to do MAC address, or some other single computer specific information, but I have not had any luck.
Ignoring specific formatting, here is something like what I am trying to do:
$localip = $_SERVER["HTTP_CLIENT_IP"]
if ($localip == xxx.xxx.xxx.xxx) {print "<a href='link.php'>Link Title</a>";}
I have already reviewed and tried every option on this page: http://us.php.net/manual/fr/reserved.variables.server.php
Any suggestions? All possible leads and information are greatly appreciated! Thanks!