Skip to content

Rycochet/php_proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP_Proxy

This will proxy all domains (and subdomains with the correct wildcard hosts) from a source domain to a target domain. It will automatically fix any cookies and links (hence the subdomains part).

Requirements

  • Apache
  • PHP
  • cURL (included in most PHP installations)

Configuration

Create a "config.inc.php" file, and populate it with your own domains and their targets -

<?php
$domains = array(
	"mydomain.com" => "thepiratebay.se",
	"myotherdomain.com" => "yts.re" // Also catches static.yts.re
);

It will take the first domain it finds, so there is no need to forward multiple subdomains unless they are using separate urls.

Installation

Create the config file, copy the three files to your web server, enjoy...

  • .htaccess
  • index.php
  • config.inc.php

About

A simple php forwarding proxy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages