• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

IP Address Caching

C

computerwitness

Guest
Hi,

I am using a php script and a mysql database to log visitors ip-addresses. I have had a lot of strange results with my script because I almost always get the same ip-address that is being logged.

It seems that the server is caching requests from visitors and therefore I can not log the correct IP address from my visitors.

Is the cache something I can switch off in Plesk? I have been looking for it, but to no avail.

Do you know if there is something else I can do to solve my problem?

Many thanks in advance!
 
What PHP code are you using to get the IP address?

We're using $_SERVER["REMOTE_ADDR"] and it's working fine for us.

We're running PHP "as ISAPI extension."
 
Back
Top