2
Bestand:
/.CodeBee/Helpers/Visitor.php
Regelnummer:
77
Melding:
file_get_contents(https://geoip.nekudo.com/api/216.73.216.107): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
array(6) {
["file"]=>
string(72) "/var/www/vhosts/nieuw.ledframes.nl/httpdocs/.CodeBee/Helpers/Failure.php"
["line"]=>
int(36)
["function"]=>
string(4) "show"
["class"]=>
string(7) "Failure"
["type"]=>
string(2) "::"
["args"]=>
array(5) {
[0]=>
int(2)
[1]=>
string(132) "file_get_contents(https://geoip.nekudo.com/api/216.73.216.107): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
"
[2]=>
string(72) "/var/www/vhosts/nieuw.ledframes.nl/httpdocs/.CodeBee/Helpers/Visitor.php"
[3]=>
int(77)
[4]=>
array(4) {
["link"]=>
string(43) "https://geoip.nekudo.com/api/216.73.216.107"
["curlInit"]=>
resource(15) of type (Unknown)
["response"]=>
string(527) "HTTP/1.1 301 Moved Permanently
Date: Wed, 01 Apr 2026 01:13:26 GMT
Connection: keep-alive
Location: https://geoip.nekudo.com/shutdown
Report-To: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=eZM6Ghp6fGkuliKKGe8YnZP%2BNDCGEFsoMF5DOZlMVggKD4xhyVE4oJJVqloD89wVdVVaUJTOk6D2zE44dJNp2Lwm6kHbByKOIfqn5HhfocSHFAM8yCgrUkrE4tdLggH1Y7adgz%2F59BrtncaNOSg%3D"}]}
Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
Server: cloudflare
CF-RAY: 9e53bb31f93f0e89-AMS
"
["http_response_header"]=>
array(23) {
[0]=>
string(30) "HTTP/1.1 301 Moved Permanently"
[1]=>
string(35) "Date: Wed, 01 Apr 2026 01:13:26 GMT"
[2]=>
string(17) "Content-Length: 0"
[3]=>
string(17) "Connection: close"
[4]=>
string(43) "Location: https://geoip.nekudo.com/shutdown"
[5]=>
string(270) "Report-To: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=ayhas3wxVVg9uHRMnS6IkIighF8I4WvMGC2wxgd5IkD%2BlrAbwRqIfNoY2RuXScjl7%2F3cYYc5H9bC0CRBKDrjdS%2BtkE1jDpxMK7c0fVqTEHPmbuE2fPiTh1wa2p7UOffFDHqsecbDM%2BDbSbI5gIw%3D"}]}"
[6]=>
string(67) "Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}"
[7]=>
string(18) "Server: cloudflare"
[8]=>
string(28) "CF-RAY: 9e53bb322a01f5f2-AMS"
[9]=>
string(22) "HTTP/1.1 404 Not Found"
[10]=>
string(35) "Date: Wed, 01 Apr 2026 01:13:26 GMT"
[11]=>
string(38) "Content-Type: text/html; charset=utf-8"
[12]=>
string(19) "Content-Length: 363"
[13]=>
string(17) "Connection: close"
[14]=>
string(34) "x-amz-request-id: 2JFMB066ZMYPQ59D"
[15]=>
string(88) "x-amz-id-2: TkCzHPU8s1pM9cZhWE50JF6B1vfC1w5O61O2qjQ6Z50x7xkyJnXWtdG1vuLHcb3MVUdA8UrwtzU="
[16]=>
string(18) "Server: cloudflare"
[17]=>
string(12) "Age: 1284799"
[18]=>
string(31) "Cache-Control: max-age=31536000"
[19]=>
string(20) "cf-cache-status: HIT"
[20]=>
string(67) "Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}"
[21]=>
string(278) "Report-To: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=b7c9TJJ%2BU4EBuIU%2FQ9dY0ELCzhHOFqXBlZbzd6fnT%2BR7ccyd0VcVPgkACM5dnWqEKVQXdOMPw4i16ic2SjTEyX%2FYrZS5ej8Ot%2B2B5%2BSlMftF8JMxKv5S5AAZnw5g%2B7Pwr5RtWIyZQhDey%2B3znNU%3D"}]}"
[22]=>
string(28) "CF-RAY: 9e53bb32bd259ff0-AMS"
}
}
}
}
67 curl_setopt($curlInit,CURLOPT_HEADER,true);
68 curl_setopt($curlInit,CURLOPT_NOBODY,true);
69 curl_setopt($curlInit,CURLOPT_RETURNTRANSFER,true);
70
71 //get answer
72 $response = curl_exec($curlInit);
73
74 curl_close($curlInit);
75
76 if ($response){
77 $geo = file_get_contents($link);
78 $geo = json_decode($geo);
79 } else {
80 $geo = new \stdClass;
81 $geo->city = "";
82 $geo->country = new \stdClass;
83 $geo->country->code = "";
84 }
85
86 self::$location = $geo;