Tuesday, June 13, 2006

running php script under proxy


<\?
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://www.example.com');
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1);
curl_setopt($ch, CURLOPT_PROXY, 'fakeproxy.com:1080');
curl_setopt($ch, CURLOPT_PROXYUSERPWD, 'user:password');
$data = curl_exec();
curl_close($ch);
?>

Required curl ext

Proxy Score

Proxy Score is a compilation of a number of scripts written in PHP.
This is the first public version and it would be continuously developed and improved.
In addition to usual checks, ProxyScore checks over 16 different variables in each one of the tests in "Checking for Proxy Traces" and "Spill IP Checks".

Proxy Score is a Modular Script. Each module can be used independently for other applications.

Current Modules are:

* Browser Module: Capable of identifying 96 Browsers
* OS Module: Capable of identifying 34 Operating Systems
* Country Code Module & Country Code Plus Module: CC Module recognizes all TLD and Country Codes. CC Plus Module checks additional variables specific to Proxy Score
* Whois & Whois Filter Modules: A full Whois Module plus a Filter module to summarize the result
* IP plus Module: Checks for dangerous or undesirable IP ranges
* Language Module: Proxy Score is a fully Multilingual Script and does automatically display the page in your language, subject that individual Language files are present. Currently, there is only an English Language File but other Languages would be added as soon as translation is made.

As Whois queries take longer to complete. If you are on a slower connection and/or do not require the Whois info, it is best to use the version without Whois.

source : C.L.A.N

0 Comments:

Post a Comment

<< Home