Top

Proxy Filter


PHP Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  6.5 (of 2 scores)
Date Added  Mar 09, 2008
Last Updated  Jan 24, 2009
Tags  kingskrown 

Introduction

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.

Grab the Code

<?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

  (5)  RSS
F*U*R*B*Y*
Comments: 637
 
PHP Snippet:  Proxy Filter
Posted on Mar 9, 2008 9:24 pm
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:

<?php print($newlist); ?>


could be

Code:

<?=$newlist;?>


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

besides that ;) not bad
bladedsha
Comments: 1
 
PHP Snippet:  Proxy Filter
Posted on Mar 9, 2008 11:32 pm
grat and thanks for changing it to add my anti-leach idea
F*U*R*B*Y*
Comments: 637
 
PHP Snippet:  Proxy Filter
Posted on Mar 10, 2008 4:09 am
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
Joshuaxiong1
Comments: 127
 
PHP Snippet:  Proxy Filter
Posted on Dec 28, 2008 12:42 am
Where can I test this script?
Joshuaxiong1
Comments: 127
 
PHP Snippet:  Proxy Filter
Posted on Mar 8, 2009 5:13 pm
Wait, I just know how to tested it now. Doesn't work properly.

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom