Konu
PHP ile IP engelleme hk?
06-01-2024, 18:35:02
#4
lXenonl
local ipnin bir önemi yok bu işte canlıda çalışıyorsan
$allowedIPs = array('31.223.10.180');
$clientIP = $_SERVER['REMOTE_ADDR'];
if (!in_array($clientIP, $allowedIPs)) {
header('Location:
http://girisyasak.com');
exit;
}