PDA

View Full Version : In need of IP Banning Script.



Drugs
09-08-2006, 11:27 AM
Ok, i need a simple IP Banning script, in which there is a form on a page, and you can type in IP addresses which then gets written to a file, and you put a php code on every page you want to include the IP ban on.. Thanks..

NellyMc
09-08-2006, 11:42 AM
Why not use Ip Deny thing
Ok, i need a simple IP Banning script, in which there is a form on a page, and you can type in IP addresses which then gets written to a file, and you put a php code on every page you want to include the IP ban on.. Thanks..

Drugs
09-08-2006, 11:46 AM
Because it needs to be like that so all admins of the shoutbox can ban IP's without cpanel access.

Fujitsu
09-08-2006, 01:20 PM
http://www.habboxforum.com/showthread.php?t=202258

Liam.
09-08-2006, 01:46 PM
yeah you need cpanel for that though to type in ips.

i had one for my user system for thehabbos somewhere it tells the user why they are banned and how long in popup.

Fujitsu
09-08-2006, 03:12 PM
Not if you just do a quick script that adds the IPs into the banned IP array.

Splinter
09-08-2006, 03:41 PM
just simply use something like this:


<?php
$ip = $_SERVER['REMOTE_ADDR'];
$banned = array(
1 => "000.000.000.01",
2 => "000.000.000.02",
3 => "000.000.000.03"
);

$size = sizeof($banned);

for($i=0, $i < $size, $i++) {
if($ip == $banned[$i]) {
echo "Your banned!";
exit();
}
}
?>

since lets be honest how many people are you really going to need to ip ban "/

Drugs
09-08-2006, 03:50 PM
I need an IP Banning system in which you type the IP into a form field.

ClubTime
09-08-2006, 04:46 PM
Talking of IP's and forms so it is sorta on topic.

I have a shoutbox that sends a form but i cant remeber how to send the IP with it but they dont know any help?

Drugs
09-08-2006, 04:53 PM
I only want admins and mods to be able to view ips

Want to hide these adverts? Register an account for free!