Skip to content
This repository has been archived by the owner on Sep 18, 2018. It is now read-only.

IP real com cloudflare #10

Open
Sh1raz opened this issue Apr 28, 2016 · 3 comments
Open

IP real com cloudflare #10

Sh1raz opened this issue Apr 28, 2016 · 3 comments

Comments

@Sh1raz
Copy link

Sh1raz commented Apr 28, 2016

Por padrão o cloudflare não envia o IP real do usuario:

getIpAddress()

$_SERVER['HTTP_CF_CONNECTING_IP'] // IP do usuario caso o dominio esteja no cloudflare

Há braço

@Sh1raz
Copy link
Author

Sh1raz commented Apr 28, 2016

Outra coisa carlito, isso aqui ta correto?

    // Devolve o endereço ip do cliente.
    return '?.?.?.?';

Há braço

@carloshenrq
Copy link
Owner

@Sh1raz Obrigado pela informação sobre o cloudfire e sobre o ?.?.?.? se ele não conseguir pegar de jeito algum eu não sei o que retornar... ai joguei isso ai mesmo

@Sh1raz
Copy link
Author

Sh1raz commented Apr 28, 2016

Ata, saquei. 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants