- Joined
- May 15, 2008
- Messages
- 682
- Reaction score
- 690
Code:
<?php
$ip = getenv('REMOTE_ADDR');
$blocked = "The IP who u want to block here";
if (ereg($blocked,$ip))
{
echo('<script language="Javascript">alert("You are blocked from this site '.$_SERVER["REMOTE_ADDR"].' asshole!"); </script>');
exit();
}
?>
Този скрипт служи за БАН/БЛОК на IP адреси в сайтът Ви.
Set in index.php or config.php also this file can be included ... like that <?php include "blocked.php"; ?> but first u need to make file with name blocked.php and in this file set the code.
Credits : Gasolincho, and Mephisto
REQ. By : ReaL
Last edited: