RDKL PerFecT Posted April 14, 2006 Share Posted April 14, 2006 So I've found a user's IP and registered as a variable in a DB. Is there any way I can now ban it? Cheers. Link to comment https://forums.phpfreaks.com/topic/7446-ip-functions/ Share on other sites More sharing options...
Caesar Posted April 15, 2006 Share Posted April 15, 2006 Asuming you have already ran the query for the IP, and thrown it into $banned[ip]:[code]$ip = $_SERVER[REMOTE_ADDR];if($ip == $banned[ip]){header("Location: banned.php");}[/code]Of course there is more to it, and diferent methods can be used....this should give you an idea. Link to comment https://forums.phpfreaks.com/topic/7446-ip-functions/#findComment-27139 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.