15 February 2012

How to Create Free Proxy Using Google Application Engine



Before I start, let tell you what a Proxy Server is. In a network a Proxy Server is a computer or an application (server) that gets all requests from the client (user) and sends them to the destination server. When it gets the request from the client application, acts itself as a client to the real server.
The proxy was developed to improve the performance of network systems. It is able to keep the client computer anonymous and speed up the process by caching technique (it stores copies of frequently requests). Multiple users can use the same proxy simultaneously at the same time. Another feature of proxy is the filtering and its ability to filter the unwanted contents.
If your PC uses a static IP address and you want to surf the Internet anonymously or need to see the blocked sites in your office or school, then using proxy a server is your solution. To know how to change your dynamic orstatic IP address in Windows, read this article.

In this tutorial I intend to show you step by step how to make Free Proxy Server with Google Application Engine for your personal use. Just follow these steps:

Step 1
First of all you need to create a new application in AppEnging.Google.Com. For this go to


And sing in to your account. If you don’t have a Google account, then make one.


Step 2
For this tutorial, you don’t need to have any knowledge of programming and it is very easy to make a new application with the Google Application Engine. In App Engine page click on Create Application button.


Step 3
Google will verify your account by sending an SMS to your mobile phone. Enter your phone number in the Mobile Number box (with country code, example +1 2236475588) and click on Send. After you received the verification code, type the code in the next page and again select Send.



Step 4
In Create an Application window, choose a name (sub domain) for your application and click on the Check Availability button to see if it is available. When you selected your desired name, then type a title for your application (it can be any title that you like). For the sake of this tutorial, I made my application name csarchive-proxy and its title CSArchive Proxy. Agree with Google Terms and Services and hit the Save button.



Step 5
What you need to do now is to download Google App Engine and Python software. You can download them from the links below or from the Google official website:


Google App Engine v1.6.2 (21.4MB)



or download from the official website:





Python-2.7.2 (14.8MB)



or download from the official website:

Step 6
First install Python on your computer and then install the Google App Engine



Run the Google App Engine and from the Edit menu, select Preferences


In Preferences window you have to set up the Python and App Engine SDK path.  In Python Path, enter the Python.exe file path (where ever it is installed). In App Engine SDk, enter the Google App Engine installed directory path and finally in Editor, type the Windows Notepad.exe file path and OK the window. Refer to the image below:


Step 7
It is time to deploy your application to the App Engine. For making a free proxy with Google Application, I used an application from the Google Mirrorrr Project. If you are an advanced user, then you can download it from the Google Mirrorrr Project URL and modify it yourself. Or you can use the application that I have already modified it from the link below:


Proxy (6.1KB)



Step 8
The zip file contains the Proxy file, after the download, extract the file. Now you have two options to deploy the application. The first method is to use the Google App Engine interface that you already installed on your system and the second method is to use Windows Command Prompt.

First Method- Using Google App Engine Interface
Run Google App Engine and from the File menu, select Add Existing Application


Click on Brows button and choose the Proxy file that you downloaded it and hit the Add button.


From the toolbar, select Edit and a new window will be open. In the first line of app.yaml file, and front of the application, write your application sub domain name. It is the name you submitted in Google Application Engine (step 4). For example my application name is csarchive-proxy.



Save the window and exit. Click on Deploy key and enter your Google account email address and password and OK the window. Wait for few minutes till your application gets deployed on Google.

 

Go to your Google application account and see if the application deployed successfully or not. If it is not, so it’s better to use the second method.

Second Method- Using Windows Command Prompt
Navigate to Google App Engine installed directory (generally in C:\Program Files\Google\google-appengine). Make a new folder and rename it to your application sub domain name (in my case I made a new folder with name csarchive-proxy). 


Open the Proxy file (the one you downloaded it before), select all files and copy them to the new directory (csarchive-proxy). 


Go to your Google email account setting and in front of the Authorising applications & sites, select Edit


In the next window, verify your password. 


Under the Enter a name to help you remember what application this is for, type the name of your Google application (sub domain) and click on Generate password. Google will generate a password for your application. 


Keep this window open and go to Start>Run>cmd>righ-click>Run as administrator. Navigate to the Google App Engine directory (C:\Program Files\Google\google-appengine) and type the command below:

appcfg.py update your-app-sub-domain-name

Example:

appcfg.py update csarchive-proxy

 
And hit the Enter key. The Command Prompt will ask for your email address and your application password. Write your email address and the password that Google generates for you before (you only need to enter this information for one time). Press the Enter key and wait till Command Prompt deployed the application and then exit from the Command Prompt.

 
Step 9
Open your system Internet browser and in the address bar type:

http://your-app-sub-domain-name/appsopt.com

My application name is csarchive-proxy, so I have to enter this URL address:

Press the Enter key and see the result. Just enter the address of any website you want to surf inside the box and select the Go button.


If you face any problem to install and deploy your application, leave a comment on this post.