Question

I have an application stored in a hosting that has Cloudflare's protection. The application in the client's side, from javascript does an ajax request to the page http://ipinfo.io and get the ip, location and some information of the visitor. Nevertheless the result is similar to:

IP: 141.101.75.82
Hostname: No Hostname
ISP: AS13335 CloudFlare, Inc.

Since you will see, the information does not belong to the visitor, the information is of Cloudflare.

Someone knows how this problem can be solved?

Sorry for orthographic failures, regards.

Was it helpful?

Solution

Thanks for reply but I've solved it. I disabled this option:

enter image description here

Regards.

OTHER TIPS

Have you installed something like mod_cloudflare to restore the original visitor IP? That should work.

At time of writing, the connecting IP can be found in the 'HTTP_CF_CONNECTING_IP' header

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top