PHP Classes

PHP Proxy Anonymizer: Send requests to other sites using PHP as proxy

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 419 All time: 6,410 This week: 55Up
Version License PHP version Categories
anonymizer-proxy 1.0.0Free For Educatio...5.0Networking, HTTP, PHP 5
Description 

Author

This class can send requests to other sites using PHP as proxy.

It parses the current request URI to extract a keyword the specifies a remote site that should be accessed.

The class can forward GET and POST requests to the destination site defined by the specified keyword in the request URL.

Then it retrieves the destination site response and serves it back as the current script response.

Picture of Er. Rochak Chauhan
  Performance   Level  
Name: Er. Rochak Chauhan <contact>
Classes: 54 packages by
Country: India India
Innovation award
Innovation award
Nominee: 15x

Winner: 4x

Example

<?php
//Usage: {domain_name}/index.php/keyword
//EG: {domain_name}/index.php/duck

require("PhpAnonymizerProxy.inc.php");
$obj=New PhpAnonymizerProxy();

//Alias Array
$aliasArray=array();
$aliasArray['duck']="https://duckduckgo.com";
$aliasArray['php']="http://3v4l.org/";
$aliasArray['fbook']="https://www.facebook.com/";

$obj->setAliasArray($aliasArray);
$obj->setForceBaseUrl(TRUE);
$obj->init();
?>


  Files folder image Files (2)  
File Role Description
Plain text file PhpAnonymizerProxy.inc.php Class Main Class
Accessible without login Plain text file index.php Example Example File

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:419
This week:0
All time:6,410
This week:55Up