PHP Classes

PHP Tor Proxy Curl: Send HTTP request using a Tor proxy server

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 136 This week: 1All time: 9,258 This week: 560Up
Version License PHP version Categories
torproxy 1.0.0The PHP License5Networking, HTTP, PHP 5
Description 

Author

This class can send HTTP request using a Tor proxy server.

It can send HTTP POST and GET requests to given URL using a proxy server of the Tor network.

The class can obtain the IP address and port number of the Tor proxy server by connecting to local Tor node server.

Picture of Kemal GENIS
  Performance   Level  
Name: Kemal GENIS <contact>
Classes: 7 packages by
Country: Turkey Turkey
Age: 40
All time rank: 234140 in Turkey Turkey
Week rank: 416 Up9 in Turkey Turkey Up

Example

<?php
include_once "torProxy.class.php";

$url = "ifconfig.me/ip";
echo
$url."\n";
$tor = new torProxy();
$data = $tor->get($url);
echo
$data."\n";

sleep(5);
echo
"Reset Tor Node...\n";
$tor->resetTor();
echo
$url."\n";
$data = $tor->get($url);
echo
$data."\n";


  Files folder image Files  
File Role Description
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file test.php Example Example script
Plain text file torProxy.class.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:136
This week:1
All time:9,258
This week:560Up