|
|
|
|
- Readme First! - Read and follow the rules, otherwise your posts will be closed |
|
|
|
|
|
There are currently, 410 guest(s) and 0 member(s) that are online.
You are Anonymous user. You can register for free by clicking here |
|
|
|
|
|
| The comments are owned by the poster. We aren't responsible for their content. |
| | | | |
No Comments Allowed for Anonymous, please register | | | | |
Re: How to BAN IPS real fast!!! (Score: 2, Interesting) by scandicdiscopub on Saturday, December 13 @ 21:29:33 CET (User Info | Send a Message) | if (eregi("block-Quickban.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
$content = "if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {";
$content .= " $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];";
$content .= " }";
$content .= " elseif (isset($_SERVER['HTTP_VIA'])) {";
$content .= " $ip = $_SERVER['HTTP_VIA'];";
$content .= " }";
$content .= " elseif (isset($_SERVER['REMOTE_ADDR'])) {";
$content .= " $ip = $_SERVER['REMOTE_ADDR'];";
$content .= " }";
$content .= " else {";
$content .= " $ip = "Banned";";
$content .= " }";
$content .= "";
$content .= "$banned = file("http://nukecops.com/banned.txt", "r+");";
$content .= "$nbanned = count($banned);";
$content .= "function ban($ip, $banned, $nbanned){";
$content .= "for ($i = 0 ; $i You Have been banned because either you did something wrong, or you are a shit-eater Either way, suck it up pal! ";";
$content .= "die();";
$content .= "}";
$content .= "}";
$content .= "}";
$content .= "ban($ip, $banned, $nbanned);";
its giving a parse error any help? |
| Parent | | | | | |
|