IP BAN SİSTEMİ
<?php
$banned_ip = array();
$banned_ip[] = ’111.111.111.111’;
$banned_ip[] = ’111.111.111.112’;
$banned_ip[] = ’111.111.111.113’;
$banned_ip[] = ’111.111.111.114’;
foreach($banned_ip as $banned) {
$ip = $_SERVER[’REMOTE_ADDR’];
if($ip == $banned){
echo "DSQL Tarafindan Banlandiniz!";
exit();
}
}
?>
<?php
$banned_ip = array();
$banned_ip[] = ’111.111.111.111’;
$banned_ip[] = ’111.111.111.112’;
$banned_ip[] = ’111.111.111.113’;
$banned_ip[] = ’111.111.111.114’;
foreach($banned_ip as $banned) {
$ip = $_SERVER[’REMOTE_ADDR’];
if($ip == $banned){
echo "DSQL Tarafindan Banlandiniz!";
exit();
}
}
?>