Do you want to know how people get to know who visited their website and from where.
It’s using your IP Address and In PHP this can be captured using a single line code.
PHP Code
<?php $ip=getenv('HTTP_CLIENT_IP')?:getenv('HTTP_X_FORWARDED_FOR')?:getenv('HTTP_X_FORWARDED')?:getenv('HTTP_FORWARDED_FOR')?:getenv('HTTP_FORWARDED')?:getenv('REMOTE_ADDR'); echo $ip; ?>
Note: This can’t detect if user using proxy network or not.
No Comment