Hi,
I was visiting this :
https://vborg.vbsupport.ru/showthread.php?t=96834
But i need a module which can Ban an IP permanently or both ?
Please let me know if you do know one way ?
Other way that i found is like as folows below :
Quote:
<?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 "You have been banned!";
exit();
}
}
// rest of PHP Script here!
?>
|
The script above is only to put in all pages.
I hope your better solution than that,
Thanks a lot.
.