January 8, 2011

How To Create A Free PHP Proxy Site

If you read my previous tutorial on how to create your personal CGI proxy, you might want to have a PHP proxy too, so I decided to post this tutorial on how to create a free and reliable PHP proxy server. Free proxy servers are all over the internet but they are generally unreliable, so getting your own free PHP proxy server isn't such a bad idea especially if you have been restricted from visiting certain sites.

With your own PHP proxy, you can unblock sites blocked by your school, employer, ISP or government. It's easier bypassing internet restrictions and firewall with your own proxy site and there is also the added advantage of securing your internet privacy. Nobody gets to know what you're up to online as you will always appear to be only visiting that proxy site.
Are you restricted from facebook, myspace, youtube and the rest of those sites you love to visit? Or are you just concerned about your online privacy? Then follow this guide and your proxy site will be up and running within one hour.

The following is required:

1. A hosting account: This can be a free or paid hosting account.
i. This hosting account must have PHP Compiler. This produces optimized stand alone applications, libraries, and Web applications from standard PHP source code. Almost all free web hosts has this so I don't think it's gonna be a problem. PHP scripts runs on almost all free web hosts

ii. The hosting account too must have safe mode turned off in it's php.ini configuration file.

safe_mode = Off
allow_url_fopen = On

This allows your web proxy server to connect to other servers since this is exactly what you want it for. You can check out these free hosts or run a google search.

-30mb.co.uk
-x10hosting.com
-mobi.ps

2. A domain name or sub-domain: Some free hosts offer a sub-domain along with every free hosting account while some expect you to already have a domain name.

You can get a totally free domain name for your proxy server from these sites:

-www.dot.tk
-nic.cz.cc
-www.co.cc
-registry.cx.cc
-freedomain.ce.ms

3. The PHP proxy script: You can download the latest PHProxy version from the link below:

download now

Now I believe you have a free hosting account with a domain name, right? It's almost complete...unzip the contents in the file you downloaded earlier.
Now login to your hosting cpanel and upload to your domain root (www folder) or create a folder in your domain root.

-index.php
-style.css
-javascript.js
-PHProxy.class.php

That's all you have to do and your free PHP proxy server is set up. Launch the address in which you upload the files and your PHP proxy server site loads. Enter your destination url in the box and you're good to go. Any problem? Leave a comment!




Stay Connected With Free Updates

Subscribe via Email

10 comments:

mcpaddy says:

i did as u said but i want u to specify the real place to upload when using this v2 cpanel accelerated by objac and how to access it

capriofiles.com says:

Just upload the files in your domain root. (the www folder)
the proxy will be available at yoursite.com

and if you decide to create a folder, say a folder named proxy. The proxy server address will be your-site.com/proxy
provided you didn't rename the scripts

Anonymous says:

Does this script work for secure sites (where you need to log in like facebook.com for ex)
I tried and it doesnt.
Do you have any suggestion?

vignesh says:

boss it gives an error...and not opening subdomainsites..

DEVIL'S BLOG says:

gives error

peter says:

were is the root folder to upload it

xoxo says:

It is working for me! thank you for this tutorial. if you having problem with host, use www.30mb.co.uk

capriofiles.com says:

@Vignesh and Devil's blog. I'm sure it's a problem with your webhost. my personal PHP proxy is still up and running.

@Anonymous3. Yes. but you must have open ssl installed on your server.

@Peter and Mcpaddy. You can upload it to your public_html folder

Anonymous says:

i did it,but there is a problem:
Warning: fwrite(): supplied argument is not a valid stream resource in /proxy/PHProxy.class.php on line 162

Warning: fgets(): supplied argument is not a valid stream resource in /proxy/PHProxy.class.php on line 172

Warning: fgets(): supplied argument is not a valid stream resource in /proxy/PHProxy.class.php on line 172
...
i dont know whats the problem,here is the url: http://joczo.atw.hu/proxy/index.php
thanks!

Anonymous says:

i also tried it with mobi.ps
it is problem sign in facebook in china. and script shows error

Post a Comment

100% Uptime, Unlimited Space, Unlimited Bandwidth