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!

. Filed Under: Uncategorized




Author: Don Caprio

Don Caprio is a full time blogger / web designer living in Nigeria and apart from blogging, my other obsession is music. I'm a self-confessed Tupac fan, an iOS lover, an Android user, a Windows 8 power user, a writer with a 5-year old unfinished novel... and the list goes on and on. You can add me on Facebook, follow my updates on Twitter or add me to your circles on Google+! You can as well grab my feed and get updates through email...

  • mcpaddy

    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

    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

    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

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

  • DEVIL’S BLOG

    gives error

  • peter

    were is the root folder to upload it

  • xoxo

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

  • capriofiles.com

    @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

    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

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

  • poya

    thanks!

  • http://bishop_pulis@yahoo.com carlos garay

    don carpio may i ask about unlock my imei zte using mobily modem but they asking about port how i should do this anf to fine that they putting about that the computer is not regognized the other sim i cannot connect pls help me mr don carpio to solve this thank for bieng genius to this site

  • dwnldmn

    Hi Don Caprio Your Tutorial is nice, it rock! but i have a little probleme: What feature is needed for a website to support reverse ip?
    I entended to use your tutorial to bypass my isp filtering. as i created the webproxy at dwnldmn.uk, I made a request in my web browser with the URL m.facebook.com and the browser is configured to use http proxy which is the webproxy i created. I tried many times with others free hosting servers without success…Please tell me the receipe

    • http://www.doncaprio.com Don Caprio

      Thanks for the compliment ;) To use the proxy site in reverse IP, the URL must resolve to a unique IP address. It probably won’t work on shared hosting and you need to buy dedicated IP for this.

      • dwnldmn

        Hi Don Caprio thanks for the support! but I’m not at level of having a credit card to purchase a dedicated IP. In cameroon we use only PHP proxy site for reverse ip to have free internet access. At this time none of the we proxies in the world couldn’t help us to have free internet except one that i intend to build for this purpose. this PHP proxy Site show be placed in a directory so that it match the file tree of the free homepage of my ISP (for exemple camer.net/cgi-bin/wap/xhtml/defaut.asp the php proxy should be located at the directory /cgi-bin/wap/xhtml/ in the root of the sever. then is use reverse ip). Is there any other free hosting server you know that could do this? another alternative will be welcome…

  • http://airproxy82.net/ Ennazih

    Thanks you for all this steps ! Because of you ! i have my first proxy website working :) It’s Air Proxy

  • http://www.betterproxy.org anonymous

    I’m excited to uncover this page. I want to to thank you for ones time for this particularly fantastic read!! I definitely appreciated every little bit of it and I have you book-marked to see new stuff in your site

  • http://ebusiness.m-karam.com/ Mohammed

    Big thanks for your effort. God Bless You.

  • http://proxyjack.com Basha

    Hi ,
    Great post, i should have seen this a year back, i would have built my proxy sites much easier, i’m now trying to build proxy sites from word press platforms, any suggestions?
    would come back again very informative keep up your good work

  • https://www.filterbypass.me/ Anonymous

    Hello ,

    First of all i would like to thank you for such an informative post.I would like to add a few points though

    1.Glype is an up to date web proxy script you could have talked about that is fairly easy to install
    2.SSL is recommanded for web proxy as it helps to bypass advanced web filters