Konu
Php ile Ülke Engelleme?
12-04-2018, 18:13:14
#3
Ravenous
=
ip2long
(
"76.105.99.0"
);
$mask
=
ip2long
(
"255.255.255.0"
);
$remote
=
ip2long
(
$_SERVER
[
'REMOTE_ADDR'
]);
if
((
$remote
&
$mask
)==
$network
)
{
header
(
"Location: http://example.com"
);
exit
;
}
ip aralığı engelletin.