Add your IP Address to Wordpress..

If you want to add your IP address to a Wordpress Blog then you can complete the following actions with the code below:

[php]<?php
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
if ($ip)
{
// Note that HTTP_X_FORWARDED can contain multiple IP addresses
$ip = explode(',', $ip);
$ip = $ip[0];
$proxy = $_SERVER['REMOTE_ADDR'];
echo '

Your IP address is: '.$ip.'
Your proxy: '.$proxy.'

';
}
else
{
$ip = $_SERVER['REMOTE_ADDR'];
echo '

Your IP address is: '.$ip.'

';
}
?>
[/php]
Previous Post Next Post

☕️ Buy me a coffee ?

If any of these articles have helped you out consider buying me a coffee, completely optional, but would be appreciated!

نموذج الاتصال