March 16, 200917 yr Basically I am getting spam/crap on a blog site from the same ip address.....can I block it any way? Ta. H
March 16, 200917 yr There are 2 ways I know of. Using htaccess, here is a tutorial. http://www.clockwatchers.com/htaccess_block.html OR you can do it in PHP, somthing like this. <? $ips = array("111.111.111", "222.222.222", "333.333.333"); if (in_array ($_SERVER['REMOTE_ADDR'], $ips)) { header("location: http://yoursite.com/blocked.html"); exit(); } ?>
March 16, 200917 yr You can ... but, if this guy has a dynamic IP adress(and he probably does), then it could turn in to a habit.
Create an account or sign in to comment