untested code [code=php]<?PHP if ($_SERVER["REMOTE_ADDR"] == 000.000.000.000) { header ("Location:http://www.yourdomain.com/banned.php"); } ?>[/code]That code must go at the very top of your page, before any content is printed.
@pyroAug 17.2003 — #I just thought of something. You'd better enclose the IP's you are banning in quotes. Also, for the header, you can use a relative path, but you are supposed to use an absolute path.
@pyroAug 17.2003 — #To take all IPs from 000.000.000.000 to 000.000.000.999 use [code=php]if ($ip >= "000.000.000.000" && $ip <= "000.000.000.999")[/code] Note that by banning an IP block, you will potentially ban a large number of users...
@PeOfEoAug 17.2003 — #But by not banning a block the user simply has to reconnect on another ip to come back. The best solution would be a timed system where an ip block is banned for several hours then is lifted, but it would require a data base that sotres the ip and I am guessing some xml or a system that logs the time then on page load it can be checked and unbanned by another user. But it would be very very complicated and involve xml with a server sid elanguage most likely.