Skip to content
RycochetPublic

About

A simple php forwarding proxy

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

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

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages