PHP קוד:
<?php
$url[0]="http://www.digitalcybersoft.com/ProxyList/fresh-proxy-list.shtml";
$url[1]="http://www.proxylists.net/http_highanon.txt";
for ($i=0 ; ; $i++){
if ($url[$i]==""){ break; }
$text = file_get_contents($url[$i]);
$text=str_replace("<td>", ":", $text);
$text=str_replace("</td>", ":", $text);
$text = substr(
$text,
strpos($text,"<pre>"),
strpos($text,"</pre>") - strpos($text,"<pre>")
);
preg_match_all('/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/', $text, $proxies);
print_r($proxies[0]);
}
?>