Proxy Filter

Platform:  PHP
Published  Mar 09, 2008
Updated  Jan 24, 2009
Filters out useless text surrounding proxies, and filters "anti-leech" proxies. Can be used for DNSbl's to filter proxies and add them to a DNSbl. <?php
if ($_POST['list']) {
$list = explode("\n", $_POST["list"]);
$num = 0;
while ($list[$num]) {
$list[$num] = str_replace(chr(9), "", $list[$num]);
if (preg_match("(d{1, 3}\.d{1, 3}\.d{1, 3}\.d{1, 3}[: ]d{1, 5})", $list[$num], $match)) {
$match[0] = str_replace(chr(32), chr(58), $match[0]);
if (!stristr($newlist, $match[0])) {
$newlist = $newlist. "\r\n" . $match[0];
}
}
$num++;
}
}
?>
<html>
<head>
<title>KINGSKROWN ILLUMINATI</title>
</head>
<body>
<center>
<h1>Ideal for filtering useless text surrounding proxies</h1>
<form action="<?=$_SERVER['PHP_SELF'];?>" method="post">
<textarea name="list" rows="25" cols="50"><?=$newlist;?></textarea>
<br />
<input name="filter" type="submit" value="filter">
</form>
</center>
</body>
</html>

Comments

Sign in to comment.
Joshuaxiong1   -  Mar 08, 2009
Wait, I just know how to tested it now. Doesn't work properly.
 Respond  
Joshuaxiong1   -  Dec 28, 2008
Where can I test this script?
 Respond  
F*U*R*B*Y*   -  Mar 10, 2008
um kingskrown, it will only work so long as your browser is on there, make it write to a text file or database or something
 Respond  
bladedsha   -  Mar 09, 2008
grat and thanks for changing it to add my anti-leach idea
 Respond  
F*U*R*B*Y*   -  Mar 09, 2008
um, few things

a - you won\'t have $newlist as it isn\'t set
b - $newlist will change for each visit, dunno if its ment to or not

and just a minor thing

Code
 


could be

Code
 


nothing to really worry about, saves byte size\'s ;)

besides that ;) not bad
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.