SamYan
SamYan

Reputation: 1571

Does cloudflare hide the visitors' ip from clientside also?

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.

Upvotes: 1

Views: 514

Answers (3)

womblerone
womblerone

Reputation: 532

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

Upvotes: 0

SamYan
SamYan

Reputation: 1571

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

enter image description here

Regards.

Upvotes: 1

damoncloudflare
damoncloudflare

Reputation: 2087

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

Upvotes: 0

Related Questions