I see this seems to be a very hot subject on the folks searching for php scripts and help. Its not really big deal to block a certain visitor IP Address. It works like : first you need to detect their IP, then you just send him a 404 not found header. Have a look:
<?php $ip = $_SERVER['REMOTE_ADDR']; $blocked = "127.0.0.1"; if($ip == $blocked) { header("HTTP/1.0 404 Not Found"); exit(); } ?>
ooo thanks.
i will follow this blog.
ooo cool, glad to hear
where shall I place these codes? thanks!
into head of your files, before code
Hi, cool post. I have been wondering about this topic,so thanks for writing.