lifestyle Friday, 10 September 2010 - 12:41
Publications
Comments

The browser displays the IP and the use of the WordPress Blog

Below is a php script to display the IP information, and information Showing a browser that visitors used the blog. For example, in this blog.

The script to display the IP visitors:

<?
$ip=$_SERVER['REMOTE_ADDR'];
$host=gethostbyaddr($ip);
$proxyip=$_SERVER['HTTP_X_FORWARDED_FOR'];
$proxyserver=$_SERVER['HTTP_VIA'];
echo “IP :  $ip “;
if (isset($_SERVER['HTTP_X_FORWARDED_FOR']))
?>
To display the information in the browser using the php script in use:
<?php
echo $_SERVER['HTTP_USER_AGENT'] . “\n\n”;
?>

Enter the script in the sidebar.php or where it would be included, if I put themselves in the sidebar.php and displays such as exist in this Blog.

Leave a Reply

[+] kaskus emoticons nartzco
Content Protected Using Blog Protector By: PcDrome.