I am trying to put my invalip ip blocker script in my php page. But it,s not working! Plz help me to do it for best. I put these code on my page of site!
<?php $ip=$_SERVER['REMOTE_ADDR']; function validateIP($ip) { $regexp = "([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})"; $validate = ereg($regexp, $ip); if ($validate == true) { return true; } else { return false; }; ?>plz help me to solve this problem. Thank you!