getting proxy ip address using php

by rajesh 2011-06-18 10:48:16



getting the details of proxy server ip address from which the users has connected to web page is as easy as getting ipaddress of the user using php

<?php
$pipaddress = getenv(HTTP_X_FORWARDED_FOR);
$ipaddress = getenv(REMOTE_ADDR);
echo "Your Proxy IPaddress is : ".$pipaddress. "(via $ipaddress)" ;
?>

Tagged in:

1036
like
0
dislike
0
mail
flag

You must LOGIN to add comments