How to Set Up a Web Proxy Using PHP in 5 minutes
After watching the Iran protests and seeing the overwhelming response of internet users to create web proxies for Iranian citizens to use to get their messages, photos and stories out onto sites like Twitter and Facebook, I decided that I would make a guide to allow web users to quickly set up their own proxies without having to install third party software.
Requirements: All you will need is a web server (outside of Iran) with PHP installed. You will also need about 300 kb of space on that server and the ability to upload files to it. You can always download and run a web server with PHP on your own computer. I recommend you check out XAMPP for this.
Steps
- Download PHProxy from this site to your computer.
- Extract what you have downloaded into a folder that you can find easily. I recommend somewhere like your Desktop where it is easy to find.
- Upload the index.php, index.inc.php and the style.css to your web server.
- Now go to where you uploaded the above files, and test it out to see if it works.
and you’re DONE!!!
See only took five minutes. Now start sharing the link with other people. I recommend you avoid publishing the link on public areas such as Twitter since the Iranian government may blacklist your server and block it, which would destroy the whole point of you doing this in the first place.
Also, I recommend that you set the following settings in php.ini or in your Apache .htaccess root for PHP. This is totally optional and the proxy will run fine even if you don’t set these things.
register_globals = Off (safer for your script)
magic_quotes_gpc = Off (avoids unnecessary, slow stripslashing in the script)
always_populate_raw_post_data = Off (no need for this extraneous data)
zlib.output_compression = On (to enable output compression, better than doing it inside the script)
Related Posts
