Check My IP - Check your IP address, get IP location, blacklist check, proxy & network information

Hello visitor from " . $country . ".
Thanks for visiting.
"; } else { echo "

Hello " . $remotehost . " from " . $country . ".
Thanks for visiting.
"; } echo "Your country code is " . $cc . ".
"; if (($remoteaddress=='') || ($remoteaddress == $realaddress)) { echo "You are presently visiting us from IP address " . $realaddress . ".
"; } else { echo "You are presently visiting us via a proxy address " . $remoteaddress . ".
"; echo "You IP address is " . $realaddress . ".
"; } if (($hostname=='') || ($hostname==$ipaddress)) { echo "Your IP address does not have a rDNS name.
"; } else { echo "Your IP address rDNS name is " . $hostname . ".
"; } // See if blacklisted $blacklisted = 0; $rev = array_reverse(explode('.', $realaddress)); $lookup = implode('.', $rev) . '.' . 'sbl-xbl.spamhaus.org.'; if ($lookup != gethostbyname($lookup)) { $blacklisted++; $spamhaus = 1; } $lookup = 'vdqmkviunfmt.' . implode('.', $rev) . '.' . 'dnsbl.httpbl.org.'; if ($lookup != gethostbyname($lookup)) { $blacklisted++; $projecthoneypot = 1; } $lookup = implode('.', $rev) . '.' . 'bl.spamcop.net.'; if ($lookup != gethostbyname($lookup)) { $blacklisted++; $spamcop = 1; } $lookup = implode('.', $rev) . '.' . 'l1.spews.dnsbl.sorbs.net.'; if ($lookup != gethostbyname($lookup)) { $blacklisted++; $sorbs = 1; } if ($blacklisted > 0) { echo "Your IP address is currently being blacklisted by " . $blacklisted . " SPAM blacklists.
"; echo "You are blacklisted at "; if ($spamhaus == 1) { echo "SPAMHAUS"; $blacklisted--; if ($blacklisted == 0) { echo ".
"; } else { echo ", "; } } if ($projecthoneypot == 1) { echo "Project Honeypot"; $blacklisted--; if ($blacklisted == 0) { echo ".
"; } else { echo ", "; } } if ($spamcop == 1) { echo "SPAMCOP"; $blacklisted--; if ($blacklisted == 0) { echo ".
"; } else { echo ", "; } } if ($sorbs == 1) { echo "SORBS.
"; } echo "
This is an indication that either your system is infected by a trojan that is using your machine to send spam, thus causing it to be in a blacklist or you are visiting us from an open proxy or IP address which has been abused before by spammers.

"; echo "Using open proxies are not recommended as some are setup with the sole purpose to sniff/collect data travelling between your node and its destinations.

"; echo "In such instance, your passwords may be captured as well.

"; echo ""; echo ""; ?>

Scan your PC for viruses now!

Trend Micro AntiVirus plus AntiSpyware

"; echo "\"Stop
"; echo "Help stop spammer before they even get your address.

"; echo "




"; /// Check network information echo "Your network information:

"; $ipaddress = $realaddress; $dnsr = ae_whois($ipaddress, 'whois.arin.net'); $pieces = explode("\n", $dnsr); $counter=count($pieces); $whoissvr = $pieces[39]; $othersvr = $pieces[25]; if ((stristr($whoissvr, 'apnic') === FALSE) && (stristr($whoissvr, 'ripe') === FALSE) && (stristr($othersvr, 'lacnic') === FALSE) && (stristr($othersvr, 'afrinic') === FALSE)) { for ($i = 12; $i <= 46; $i++) { echo $pieces[$i] . "
\r\n"; } } elseif ((stristr($whoissvr, 'apnic') === FALSE) && (stristr($othersvr, 'lacnic') === FALSE) && (stristr($othersvr, 'afrinic') === FALSE)) { $dnsr = ae_whois($ipaddress, 'whois.ripe.net'); $pieces = explode("\n", $dnsr); $counter=count($pieces); for ($i = 0; $i <= $counter; $i++) { if (stristr($pieces[$i], 'inetnum') == TRUE) { $start = true; } if ($start == true) { echo $pieces[$i] . "
\r\n"; } } } elseif ((stristr($othersvr, 'lacnic') === FALSE) && (stristr($othersvr, 'afrinic') === FALSE)) { $dnsr = ae_whois($ipaddress, 'whois.apnic.net'); $pieces = explode("\n", $dnsr); $counter=count($pieces); $start = false; for ($i = 0; $i <= $counter; $i++) { if (stristr($pieces[$i], 'inetnum') == TRUE) { $start = true; } if ($start == true) { echo $pieces[$i] . "
\r\n"; } } } elseif (stristr($othersvr, 'afrinic') === FALSE) { $dnsr = ae_whois($ipaddress, 'whois.lacnic.net'); $pieces = explode("\n", $dnsr); $counter=count($pieces); $start = false; for ($i = 0; $i <= 46; $i++) { if (stristr($pieces[$i], 'inetnum') == TRUE) { $start = true; } if ($start == true) { echo $pieces[$i] . "
\r\n"; } } } else { $dnsr = ae_whois($ipaddress, 'whois.afrinic.net'); $pieces = explode("\n", $dnsr); $counter=count($pieces); $start = false; for ($i = 0; $i <= 46; $i++) { if (stristr($pieces[$i], 'inetnum') == TRUE) { $start = true; } if ($start == true) { echo $pieces[$i] . "
\r\n"; } } } ?>