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>