View Full Version : Can someone give me a good Ban IP script?

01-05-2004, 01:06 PM
Can someone give me a good ban ip script? Something like you have to put it in the head section of the page and then the people from the ip you filled in can't see the page? Please help me.

01-05-2004, 01:22 PM
Banning doesn't always work correctly and you can sometimes ban people you don't mean to ban, but here you go.

$bannedips = array("IP HERE","IP HERE","IP HERE");
if (in_array($ip, $bannedips)) {

// disallow

} else {

// allow


01-05-2004, 01:33 PM
Thank you!:)

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum