Setting Up A Glype Proxy


This tutorial goes in to great detail on how to setup a Glype Proxy and is intended for people that have never set up proxy and that have very little experience or maybe even for people that may just want to learn a little more about setting up Glype.

Glype is a PHP Proxy and by far is the most common use today. It’s simple to set up and run. You’ll be able to customize your proxy using any number of free Glype themes. You’ll have great control of who and how users use your proxy, you’ll be able to monetize your proxy with ease. So let’s get your proxy up and running.

First thing we need is the Glype Proxy Script. Now that you have downloaded Glype, we’ll open the zip file. Inside you’ll find two folders: upload and extras. The upload folder contains all of the files you need to run Glype. There should be four folders: tmp, themes, plugins and includes .

There should also be three files:

  • robot.txt – This controls how web spiders/robots interact with your proxy (the default prevents spiders/robots from using your proxy).
  • index.php – This is the page your users will see (main page).
  • browse.php – This is your proxified page

The extras folder contains several other useful files, such as the Privacy Policy, Admin CP, Terms, Edit-Browser, etc… All of which are very useful and we will cover them shortly, for now we’ll just work on setting up your proxy.

Second on our list is a FTP program, there are many to choose from if you don’t have one, you can use one of the following: FileZilla, CoreFTP, SmartFTP or your favorite FTP program.

Now that we have Glype and a FTP program, we’re now ready to upload Glype. Login to your host using the FTP, you now want to upload the files in the upload folder to your host’s root folder (public_html).

public_html

Double click the public_html to open it, then select to upload the “upload” folder in of Glype. Once the upload is complete you should have the following files:


tmp

tmp” Folder: This folder is empty upon installation, but you if plan on NOT using the Admin CP in the extras folder, then you’ll have to create two new folders inside the tmp folder. One should be named “cache” and the other “logs“.

logs-cache

If you do use the Admin CP, this can be done via the panel, we’ll cover more on this later. Also you’ll have to change the CHMOD on both folders to 777. (see: CHMOD)

themes

themes” Folder: This folder contains two folders: “simple” which has a basic example theme and “default” this has:

  • sslwarning.page.php – This is a warning page for attempts to browse a secure connection
  • main.php – This is your proxies main page.
  • framedForm.inc.php – This is the URL form for your proxified pages
  • config.php – This is to set the global variables of your theme.
  • banned.page.php – This is shown when a visitor is on a blocked IP range.
  • authenticate.page.php – This is for authentication.

The three files we will work with are the main.php, config.php, and framedForm.inc.php.


plugins

plugins‘ Folder: Plugins contains four files:

  • myspacecdn.com.php
  • myspace.com.php
  • fbcdn.net.php
  • facebook.com.php

These plugins will allow your proxy user to access MySpace and FaceBook. There are plenty of other unofficial plugins, which will help you offer more access to your users and to help your proxy run better. You’ll find plugins for everything from Gmail to YouTube. The Glype Forums are a great place to find the latest and greatest plugins.


includes

includes” Folder: includes contains five files:

  • settings.php
  • process.php
  • parser.php
  • main.js
  • init.php

All of the files here are needed by Glype to work properly. You could do some editing in the settings.php manually, but if your reading this I wouldn’t recommend you do it. I would however highly recommend you upload the admin.php file located in the Extras folder. You’ll have to CHMOD the settings.php file to 777. (see: CHMOD)


Now moving on to the extras folder: The extras folder contains seven files:

  • terms.php – This is the terms of use, for your proxy.
  • privacy.php – This is your privacy statement for your proxy.
  • full.main.js – This is your main javascript.
  • edit-browser.php – This is so your user can edit the browser settings.
  • disclaimer.php – This is your disclaimer for your proxy
  • cookies.php – This is so your users can edit their cookies.
  • admin.php – This is your admin panel.

I would recommend that you leave the following files as they are: Terms, Privacy and Disclaimer. Also the full.main.js. There are two files that your proxy users will find useful: “edit-browser” Give your users the ability to make adjustments to their “Virtual Browser” (your proxy) like:

  • User Agent – Allows the user to choose from presets, like Firefox (Vista,Mac,XP) or IE6-7 etc…
  • Referrer - Allows the users to change referrer, real, custom or none.
  • Connection – Allows the users to enter another proxy.

And “cookies“: This allows users to view and delete cookies set by sites they accessed through your proxy.


Now that your proxy is uploaded and running we need to discuss the admin.php file. The Admin file contains all kinds of settings and options to help you manage your proxy. We’ll cover this one by one. To access the Admin CP you will go to your proxy and add admin.php,

example – http://yourproxy.com/admin.php.

This will bring up your Admin CP. The first thing you’ll notice when you access your proxies Admin Control Panel is a Welcome Page, here Glype will do an environment check, that will let you know if your server is set up to run Glype. If you receive an error Glype will inform you on what changes need to be done to run Glype.

Next Glype will check your script versions, if your current then all is fine, if your running an older version Glype will want to be updated. You’ll also see the Latest Glype news. Now that everything is in order, we can move on to Edit Settings:


Installation Options

install_options
  • Theme - This will allow you to choose a theme. (see: How To Change Theme)
  • Temporary directory – This is where your temporary folder is located. (tmp)
  • Use GZIP compression – This will compress the viewed pages, this will reduce bandwidth, but increase CPU load,
  • SSL warning – This will warn the user(s) if they are on an unsecured connection.
  • Override native javascript – This overrides native java script with your servers, though it may interfere with your ads ie…adsense.
  • Load limiter – This will fetch your servers load and will stop your proxy from loading if the server load is to high.
  • Censor content – This will sensor out any text you place within the box, example if you censored “marko”, the proxified page would show “#####”
  • Footer include – Anything added here, will show up at the bottom of all proxified pages.
  • License key – If you purchased a License from Glype, you would enter it here.


URL Encoding Options
url_encoding
  • Use path info – This formats URLs as browse.php/aHR0… instead of browse.php?u=aHR0…
  • Unique URLs - This will create unique URLs for each visitor.

Hotlinking

hotlinking
  • Prevent hotlinking – This prevents users fron “Hotlinking” to your proxified page, forcing them to visit your proxies main page.
  • Allow hotlinking from – This allows you to enable a site you choose to bypass the Hotlink protection.

Caching

caching
  • Enable caching – This allows you to enable or disable the cache function.
  • Cache file types – This lets you select which type of files to cache (jpg, jpeg, png, gif, flv, etc…
  • Cache all websites – This will cache ALL websites.
  • Cache websites – This will cache only the sites you specify.
  • URL to cache folder – This is the location of your cache folder (/tmp/cache/).
  • Path to cache folder – This is the path to your cache folder (cache/).

Logging

logging
  • Enable logging – This will enable or disable the log function.
  • Path to log folder – This is the location of your log folder (logs/)
  • Log all requests – This allows you to select if you want everything logged, Yes(images, etc…) or No, to just log request for html pages.

Website access control

website_access_control
  • Whitelist – This is to Block everything Except the listed websites
  • Blacklist – This is to Block website.

User access control

user_access_control
  • IP bans- This is to BAN IP’s, any IP listed here will be blocked.

Transfer options

transfer_options
  • Connection timeout – This sets the time to wait for any connection to the target server, if it takes longer than your set time the connection is aborted.
  • Transfer timeout – This is the amount of time your proxy will allow for the entire transfer of a file.
  • Filesize limit – This will let you put a limit on the file size a user can download through your proxy.
  • Download speed limit – This lets you throttle the transfer speed, if you limit the speed you may have to adjust the Transfer Timeout.
  • Resume transfers – This lets you offer your users the Resume function, making it possible to resume a previous download.
  • Queue transfers – This lets you set your proxy to only allow one download at a time.

Cookies

cookies
  • Store cookies on server
  • Path to cookie folder
  • Encode cookies

Maintenance

maintenance
  • Cleanup interval
  • Keep logs for

User Configurable Options

user_conf_options
  • Encode URL – This will encode the URL of the page you are viewing so that it does not contain the target site in plaintext.
  • Encode Page – This helps avoid filters by encoding the page before sending it.
  • Show Form – This places a form at the top of your proxified page, allowing user to visit another site without going back to your main page.
  • Allow Cookies – This allows cookies to be set.
  • Force Temporary Cookies – This will override the expiry date for all cookies and sets it to at the end of the session.
  • Remove Page Titles- This removes titles from your proxified pages.
  • Remove Scripts – This will remove scripts to protect users anonymity and speed up page loads.
  • Remove Objects – This may increase page load times by removing unnecessary Flash, Java and other objects.

After you’ve made your changes and your happy with your settings, rember to click the “Save Changes” button.

save_changes

Now that your proxy settings are to your liking we’ll move on to the next section.

Cache Status

cache_status
  • Cache feature – This will show you if your Cache is Enabled or Disabled.
  • Cache folder – This is the location of your cache folder, you can also see if it exists and if its writable. (if its not writable, you’ll need to CHMOD the cache folder to 777, see: CHMOD)
  • Size of cache folder – This shows you the how much space is used in your cache folder, and how many files it contains.
  • Size of disk – This shows you the size of your cache folder.
  • Options – This allows you to Empty you cache folder.

OK, now that your Cache Status is set, we’ll move on to View Logs.


Logging

logging2
  • Logging feature – This shows you if the log feature is enabled or disabled
  • Log folder – This is the location of your log folder.


log_files

Log files

This is where you can view your proxy logs, you can view ‘Raw Log”. This will show you every site that was visited through your proxy, along with the users IP, date and time the user accessed said site(s). This is handy if you users accessing site that you may want to block. You can block the users IP or just block the site the user visited. You can also view Popular Sites, this will so you which site are being visited the most by your users.


We’ve come to the end of this tutorial and you should now have a better understanding of the Glype Proxy Script as well as having an installed proxy. To learn in more detail about how best to tune your proxy (recommended settings), We’ll be putting up another tutorial on that as well. Be sure to have a look at our other tutorials on how to change your theme, how to promote your proxy and how to monetize it. If you have any question or suggestions, feel free to comment or stop in the forum and we’ll do our best to help you out.


by Marco on anonymousplanet.com

4 Response to Setting Up A Glype Proxy

  1. dheeraj says:

    heyyyyyyyyyy
    do u know how to make the players like jw or flow player bwork
    because my college has blocked youtube

  2. Unknown says:

    Instead of proxy sites i use "Hotspot Shield" Free VPN. It is totally secured and your online activities will remain private. I am very much concerned about my online privacy so to anonymously access gmail from work i use "Hotspot Shield" free vpn.

  3. I read your article and get very important information in addition if you have any query you can click here.
    Monova UK proxy

  4. ahmed says:

    best arab proxy
    http://arab-proxy.info

Posting Komentar