< ?php
if($HTTP_X_FORWARDED_FOR):
echo "Proxy Name $HTTP_VIA";
echo "Proxy IP $REMOTE_ADDR";
echo gethostbyaddr;
echo "Your Real IP $HTTP_X_FORWARDED_FOR";
else:
// if access direct to Internet, without Proxy
echo "Real IP $REMOTE_ADDR";
endif;
? >
This simple code to detech real IP of client. How to get Real IP of user that Online via Proxy with PHP
This article will show how to detect real IP from client with PHP. With this little code we can detech user real IP.
Let try. first write this code in *.php with favorite editor such (Dreamweaver MX 2004, PHPedit, Notepad, etc)
I live for love and my generation
Comments
Be the first to write a comment
You must me logged in to write a comment.