[Warning] file_get_contents(https://api.ipbase.com/v1/json/3.15.138.89): failed to open stream: HTTP request failed! HTTP/1.1 429 Too Many Requests

GET /property-search/detail/DIJUAL-RUMAH-NGINDEN-KOTA-GUBENG-SURABAYA-RON-A2063

Line 1122 in /home/developer/web/xaviermarks.com/public_html/mysite/code/CT.php

Source

1113     static function getCountryFromIP() {
1114         $ip = '';
1115         if (isset($_SERVER['HTTP_CLIENT_IP'])) {
1116             $ip = $_SERVER['HTTP_CLIENT_IP'];
1117         } elseif (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
1118             $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
1119         } elseif (isset($_SERVER['REMOTE_ADDR'])) {
1120             $ip = $_SERVER['REMOTE_ADDR'];
1121         }
1122         $geoInfo = file_get_contents("https://api.ipbase.com/v1/json/{$ip}");
1123         $geoData = json_decode($geoInfo);
1124 
1125         if (isset($geoData->country_code)) {
1126             $country = $geoData->country_code;
1127         } else {
1128             $country = 'unknown';

Trace

NGINDEN KOTA , RUMAH, Dijual, NGINDEN SURABAYA, Jawa Timur « XAVIER MARKS Realty
logo
Search
En