echo "
“; //echo getenv(‘HTTP_USER_AGENT’); //echo “
“; //Dokument Pfad //echo $_SERVER[“DOCUMENT_ROOT”]; //echo “
“; //echo $_SERVER[‘HTTP_USER_AGENT’]; //echo “
“; //Betriebssystem ermitteln $agent=$_SERVER[‘HTTP_USER_AGENT’]; $os =”Unbekannt”; if (strstr($agent, “Windows 98″)) $os=”Windows 98″; elseif (strstr($agent, “NT 4.0″)) $os=”Windows NT “; elseif (strstr($agent, “NT 5.1″)) $os=”Windows XP”; elseif (strstr($agent, “Mac”)) $os=”Mac OS”; elseif (strstr($agent, “Linux”)) $os=”Linux”; elseif (strstr($agent, “Unix”)) $os=”Unix”; elseif (strstr($agent, “NT 6.0″)) $os=”Windows Vista”; elseif (strstr($agent, “NT 6.1″)) $os=”Windows 7″; elseif (strstr($agent, “NT 6.2″)) $os=”Windows 8″; elseif (strstr($agent, “NT 6.3″)) $os=”Windows 8.1″; elseif (strstr($agent, “iPhone OS 8_1_2″)) $os=”Windows 8.1.2″; elseif (strstr($agent, “iPhone OS 8_1_3″)) $os=”Windows 8.1.3″; //Browser ermitteln if (strpos($agent, “Mozilla/5.0″)) { $browser = “Mozilla”; } if (strpos($agent, “Mozilla/4″)) { $browser = “Netscape”; } if (strpos($agent, “Mozilla/3″)) { $browser = “Netscape”; } if (strpos($agent, “Firefox”) || strpos($agent, “Firebird”)) { $browser = “Firefox”; } if (strpos($agent, “Firefox/36″)) { $browser = “Firefox 36″; } if (strpos($agent, “MSIE 7.0″)) { $browser = “IE 7″; } if (strpos($agent, “MSIE 6.0″)) { $browser = “IE 6″; } if (strpos($agent, “MSIE 5.0″)) { $browser = “IE 5″; } if (strpos($agent, “Netscape”)) { $browser = “Netscape”; } if (strpos($agent, “Camino”)) { $browser = “Camino”; } if (strpos($agent, “Galeon”)) { $browser = “Galeon”; } if (strpos($agent, “Konqueror”)) { $browser = “Konqueror”; } if (strpos($agent, “Safari”)) { $browser = “Safari”; } if (strpos($agent, “OmniWeb”)) { $browser = “OmniWeb”; } if (strpos($agent, “Opera”)) { $browser = “Opera”; } if (!isset($browser)) { $browser = “Unbekannt”; } // Land ermitteln $search_ip = $_SERVER[“REMOTE_ADDR”]; function LoadRipe($search_ip) { $fp = fsockopen (“whois.ripe.net”, 43) or die (“Ripe-Connect-Error!”); fputs($fp, $search_ip.”\n”); while (!feof($fp)) { $output[] = fgets($fp, 2048); } fclose($fp); return $output; } $ip = $_SERVER[“REMOTE_ADDR”]; $test = LoadRipe($ip); foreach($test as $fullvalue){ if($ergebnis = preg_match(“/country/”,$fullvalue)){ $value= preg_replace(“/country:/”, “”, $fullvalue); $fullhost = gethostbyaddr($ip); $host = preg_replace(“/^[^.]+./”, “”, $fullhost); function gethostbyaddr6($ip6) { $ipv6calc = “/bin/ipv6calc”; $dig = “/usr/bin/dig”; $file = popen($ipv6calc.” –in ipv6addr –out revnibbles.int “.escapeshellarg($ip6), r); $ip = fread($file, 128); pclose($file); if ((substr($ip, 0, 5) == “Error”) || (!$ip)) return “No valid IPv6 address”; $file = popen($dig.” ptr “.$ip, r); while (!feof ($file)) { $buffer = fgets($file, 128); if (substr($buffer, 0, 1) == “;”) continue; $buffer = explode(” “, $buffer); if ($buffer[3] == “PTR”) { $host = substr(trim($buffer[4]), 0, -1); pclose($file); return $host; } } pclose($file); return $ip6; } echo “IP Adresse: “; echo $_SERVER[“REMOTE_ADDR”]; echo “
“; echo “IP6 Adresse: “; echo gethostbyaddr6($_SERVER[REMOTE_ADDR]); echo “
“; echo “Host: “; echo $fullhost; echo “
“; echo “Provider: “; echo $host; echo “
“; echo “Land: “; echo $value; echo “
“; echo “Browser: “; echo $browser; echo “
“; echo “Betriebssystem: “; echo $os; echo “
“; echo “
“; echo “User Agent: “; echo $_SERVER[‘HTTP_USER_AGENT’]; echo “
“; //$server = “85.214.220.67”; //echo gethostbyaddr($server); } } echo “
“;
?>