Cloudflare IP

Gestart doorDylan3 reacties36 weergaven

4 berichten · pagina 1 van 1

Berichten
5.795
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
dan moet je HTTP_X_FORWARDED_FOR gebruiken ipv REMOTE_ADDR
0
Berichten
5.274
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien

Eindhoven, Nederland

Nee, gebruik HTTP_CF_CONNECTING_IP.

Zet dit script in je config en je kan gewoon REMOTE_ADDR gebruiken:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]HTTP_CF_CONNECTING_IP[/COLOR][COLOR= #007700]]))
{[/COLOR]
     [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]HTTP_CF_CONNECTING_IP[/COLOR][COLOR= #007700]];
}[/COLOR]
?>
0
Dylan

Lid · Topicstarter

Berichten
14.025
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien
Wouterr schreef:
Nee, gebruik HTTP_CF_CONNECTING_IP.

Zet dit script in je config en je kan gewoon REMOTE_ADDR gebruiken:
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]HTTP_CF_CONNECTING_IP[/COLOR][COLOR= #007700]]))
{[/COLOR]
     [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]HTTP_CF_CONNECTING_IP[/COLOR][COLOR= #007700]];
}[/COLOR]
?>


oh, bedankt..biggrin
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren