I am having an issue on a few pages. I have an intranet site where I only want to allow pages to load if the person accessing the site is on the internal network.
So I am using the REMOTE_ADDR servervariables value to get the IP. The problem is that if I access the site from an external location, this just returns the gateway IP address which is on the internal network and so the page loads.
Have googled this and haven't found a solution. Is there a way around this? For the moment, I have just modified my check to only load if the REMOTE_ADDR is on the network and not the gateway address.
Mighty
So I am using the REMOTE_ADDR servervariables value to get the IP. The problem is that if I access the site from an external location, this just returns the gateway IP address which is on the internal network and so the page loads.
Have googled this and haven't found a solution. Is there a way around this? For the moment, I have just modified my check to only load if the REMOTE_ADDR is on the network and not the gateway address.
Mighty