Qual o IP?
apiKey = $key;
}
public function getError(){
return implode(“\n”, $this->errors);
}
public function getCountry($host){
return $this->getResult($host, ‘ip-country’);
}
public function getCity($host){
return $this->getResult($host, ‘ip-city’);
}
private function getResult($host, $name){
$ip = @gethostbyname($host);
if(preg_match(‘/^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:[.](?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$/’, $ip)){
$xml = @file_get_contents(‘http://’ . $this->service . ‘/’ . $this->version . ‘/’ . $name . ‘/?key=’ . $this->apiKey . ‘&ip=’ . $ip . ‘&format=xml’);
try{
$response = @new SimpleXMLElement($xml);
foreach($response as $field=>$value){
$result[(string)$field] = (string)$value;
}
return $result;
}
catch(Exception $e){
$this->errors[] = $e->getMessage();
return;
}
}
$this->errors[] = ‘”‘ . $host . ‘” is not a valid IP address or hostname.’;
return;
}
}
if (empty($_SESSION[“pais”])) {
$ip2location = new ip2location_lite();
$dados=$ip2location->getCity($_SERVER[‘REMOTE_ADDR’]);
$_SESSION[“proprietario”] = shell_exec(“whois “.$_SERVER[‘REMOTE_ADDR’].” | grep ‘owner:’ | awk -F: ‘{print $2}’ | uniq”);
$_SESSION[“server”] = shell_exec(“whois “.$_SERVER[‘REMOTE_ADDR’].” | grep ‘nserver:’ | awk -F: ‘{print $2}’ | uniq”);
$_SESSION[“pais”] = $dados[“countryName”];
$_SESSION[“latitude”] = $dados[“latitude”];
$_SESSION[“longitude”] = $dados[“longitude”];
}
?>
Dados da sua conexão
Veja abaixo os dados da sua conexão com a Internet.
- Seu endereço de IP é:
- Proprietário do seu host:
- Seu host de IP é:
- Porta remota é:
- Cabeçalho do proxy é:
- Origem do acesso é:
- Sistema do usuáo é:
- Linguagem do navegador é:
Boa sorte.
11 Replies to “Qual o IP?”
Hi all, here every one is sharing such know-how, therefore it’s
fastidious to read this blog, and I used to pay a visit this webpage everyday.
lasix without a script
neurontin 800 mg
Viagra
buy fincar online review united states
Viagra Ohne Rezept Berlin
levitra generic buy cialis online with a prescription
What Is Cephalexin Used To Treat
Buy Trimix Injection Online
azithromycin zithromax
Generic Version Of Viagra