Proxus MaximusTop

A simple HTTP Proxy written in PHP based on php-proxy. All what you need to run your own proxy server is a cheap webhosting with PHP support.

Original codeTop

https://code.google.com/p/php-proxy/

A really simple php proxy that ‘just works’.

This project was put together as a simple system that could be taken and extended to ones needs. I was largely disappointed that none of the other systems seemed to handle POST,COOKIE and SESSION information well - if at all!

The whole system was put together in about 2 hours - and just works!

The code is intentionally bare bones and easy to read. This will enable you to get on with using the proxy for what you actually want! In my case to transparently sniff the data going too & from the browser and a site so that I can extract and log information to a database!

To use the proxy effectively you will require a server with .htaccess and mod_rewrite support.

INSTALLTop

  1. Preferably use the proxy on it’s own domain e.g. http://proxy.xyz.com/
  2. Rename htaccess.txt to .htaccess and install on your server.
  3. Download the proxy script and install it in the root web folder as ‘index.php’.
  4. Edit the script and adjust the target domain name you would like to scrape!

Done!

This codeTop

Basically I changed the code so that the domain is not hard coded. Here you pass the URL you want to proxify with the __url__ argument.

  1. Call the script without arguments to get a textbox to enter an URL.
  2. Call the script with the __url__ argument to open the URL, e.g. https://proxy.xyz.com/?__url__=https://news.ycombinator.com
  3. Call the script with the __clear__ argument to clear the session, e.g. https://proxy.xyz.com/?__clear__

InstallTop

  1. Make sure PHP has cURL support.
  2. Download from Github
  3. Make a subdomain.
  4. Put the files in the root folder of the subdomain. Rename htaccess.txt to .htaccess.
  5. Edit $config in index.php especially the allowedIPs item. If this array is empty, clients from everywhere can use this proxy, and thats probably not what you want. Alternatively you can restrict access with e.g. a .htaccess, .htpasswd file.

FeaturesTop

ScreenshotTop

Proxus Maximus intex page

Use casesTop

Get itTop