1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<?php $dir = $mod_root."/ipbans"; $handle = opendir($dir); while($file = readdir($handle)) { if(!is_dir($file)) { if(($file != ".") && ($file != "..") && ($file != "index.html")) { $name = str_replace(".php","",$file);
if(strtolower($_SERVER['REMOTE_ADDR']) == strtolower($name)) { derr("You are IP Banned from this website."); exit; }
} } } ?>
|