add localhost check

This commit is contained in:
2023-01-30 13:38:47 +01:00
parent 726d10c9be
commit ea2f2bf342

View File

@@ -8,7 +8,7 @@ $headers = apache_request_headers();
foreach ($headers as $header => $value) {
if($header == 'X-Real-IP'){
if (!empty($value)){
if (!empty($value) && $_SERVER['REMOTE_ADDR'] == "127.0.0.1"){
$ipcka = $value;
}
}