2
Bestand:
/.CodeBee/Helpers/Visitor.php
Regelnummer:
77
Melding:
file_get_contents(https://geoip.nekudo.com/api/216.73.216.115): 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.115): 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.115"
["curlInit"]=>
resource(15) of type (Unknown)
["response"]=>
string(513) "HTTP/1.1 301 Moved Permanently
Date: Fri, 16 Jan 2026 03:16:42 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=%2FwAbCqDDcPeecFAKHXpsp9%2BZNc9oLuerRj0rK2E%2BOcyvFOFERw7sW9su6RSePpOyI82xe5ZnSB2XjPfC62ERX6OKuy%2F8H4t%2FmQw06KF%2FbiuEJNHVmam8Y5XceA%3D%3D"}]}
Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
Server: cloudflare
CF-RAY: 9bea74a4e9255088-AMS
"
["http_response_header"]=>
array(24) {
[0]=>
string(30) "HTTP/1.1 301 Moved Permanently"
[1]=>
string(35) "Date: Fri, 16 Jan 2026 03:16:42 GMT"
[2]=>
string(17) "Content-Length: 0"
[3]=>
string(17) "Connection: close"
[4]=>
string(43) "Location: https://geoip.nekudo.com/shutdown"
[5]=>
string(248) "Report-To: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=5WDCvPyJT%2BhqDrAA%2F0Ce85bm3M5SYYADxJtVrCmYUnKbqfROb%2FxxNx0dkk3MdGNpWQti69mTuj4JDeVwpXtd%2FhlXQNrIt3dPNO5BkG2lwiwfHb7gfZjwy0q4Cg%3D%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: 9bea74a50a97497f-AMS"
[9]=>
string(22) "HTTP/1.1 404 Not Found"
[10]=>
string(35) "Date: Fri, 16 Jan 2026 03:16:42 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: Y868Z415JB6GM2F7"
[15]=>
string(88) "x-amz-id-2: grMOmw4vhtb57U63r0L7z4S6YT5+rwoHfDY0zZMQqsByeC/YmwpeTTnoBCXi1c82ZKwdK3V7wgM="
[16]=>
string(18) "Server: cloudflare"
[17]=>
string(12) "Age: 2074877"
[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(21) "Vary: accept-encoding"
[22]=>
string(250) "Report-To: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=RTo0E3%2FHoVLLQo2Tb9yfYbGYo1GJfaALsWFmk59FQTnuoooL%2BEspviXvWLzr7%2Ba0FYxyJGegv3Gi%2FEy2uKpsG2YjqQ7TdkBSB%2FuK6BkB9l3Uy50SpAnlGf8F3g%3D%3D"}]}"
[23]=>
string(28) "CF-RAY: 9bea74a56dcfd8cc-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;