Subscribe:

September 26, 2005

Fetch Proxies

Filed under: General,Web Technologies — Scott @ 3:49 pm

Not much just a couple of php functions to pull and test proxies lists.

The first function pulls all the pages of the Samair Proxy site and parses it for use. This is just an average screen scraper script, nothing interesting really.

The second function text_proxy tests a single proxy or list of proxies passed as an array in the format IP_ADDRESS:PORT_NUMBER ( ie. 192.168.1.1:8080 ) . The arguments allow you to set a maximum acceptable response time, a regular expression to test the content returned from the target url for , and set the test url to check.

Please read the example code given for more details or post your questions here. Please be warned the script is slow, it is checking many proxies and parsing pages to find the ip addresses, thats not a very quick activity.

I hope you find it useful.

Here are the Fetch Proxy Functions.

ps. also I added a scripts and tools page [Tools, Scripts, and Stuff] to keep track of them all.

Popularity: 8% [?]


Like it? Subscribe to the blog if you haven't already
Digg!

Related Posts


RSS feed | Trackback URI

2 Comments »
Comment by kelly
2007-02-22 11:45:09

you need to actually MAKE a proxy.. that people can use.. not just talk about it..

 
Comment by Scott
2007-02-22 12:10:11

I don’t really see an upside to hosting a proxy for the general public to use.

 
Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.