“I solemnly swear that I am planning a prank, and only prank…”
Foxy-Tools — is a set of PHP-tools for not quite legal cases on the web.
Composer is the recommended way to install Foxy-Tools. Alternatively, if you prefer not to use Composer, but want to install Foxy-Tools, you can do so by doing a direct download.
Currently, Foxy-Tools is available at packagist.org. To use it in your project, you need to include it as a dependency in your project composer.json file.
-
Download Composer if not already installed
-
Go to your project directory. If you do not have one, just create a directory and
cd
in.$ mkdir project $ cd project
-
Execute
composer require "paypal/rest-api-sdk-php:*"
on command line. Replace composer with composer.phar if required. It should show something like this:$ composer require limych/foxy-tools # output: ./composer.json has been created Loading composer repositories with package information Updating dependencies (including require-dev) - Installing limych/foxy-tools (v1.0) Loading from cache Writing lock file Generating autoload files
If you do not want to use composer, you can grab the zip that contains Foxy-Tools with all its dependencies with it.
- Download latest/desired release zip file from Releases Section
- Go to your project directory. If you do not have one, just create a directory and
cd
in.
mkdir project
cd project
- Unzip, and copy directory to your project location
{type}://{user}:{password}@{host}:{port}
Some examples:
183.95.132.76
195.5.18.41:8118
socks5://195.5.18.41:8118
socks5://user:password@195.5.18.41:8118
$pingUrl = 'http://yourdomain.com/ping.php';
$proxy = 'xxx.xxx.xxx.xxx:xx';
$proxyChecker = new ProxyChecker($pingUrl);
$results = $proxyChecker->checkProxy($proxy);
$pingUrl = 'http://yourdomain.com/ping.php';
$proxies = array('xxx.xxx.xxx.xxx:xx', 'xxx.xxx.xxx.xxx:xx');
$proxyChecker = new ProxyChecker($pingUrl);
$results = $proxyChecker->checkProxies($proxies);
Array allowed/disallowed operations of proxy (get, post, referer, cookie, user_agent), for example:
'allowed' => array (
0 => 'get',
1 => 'post',
2 => 'referer',
3 => 'user_agent'
)
'disallowed' => array (
0 => 'cookie'
)
-
elite — connection looks like a regular client;
-
anonymous — no ip is forworded but target site could still tell it's a proxy;
-
transparent — ip is forworded and target site would be able to tell it's a proxy.
'proxy_level' => 'elite'
Other proxy info - time, http code, redirect count, speed etc:
'info' => array (
'content_type' => 'text/html',
'http_code' => 200,
'header_size' => 237,
'request_size' => 351,
'ssl_verify_result' => 0,
'redirect_count' => 0,
'total_time' => 1.212548,
'connect_time' => 0.058647,
'size_upload' => 143,
'size_download' => 485,
'speed_download' => 399,
'speed_upload' => 117,
'download_content_length' => 485,
'upload_content_length' => 143,
'starttransfer_time' => 1.059746,
'redirect_time' => 0,
'certinfo' => array (),
)