How to Install and Configure Suffix Proxy Script

Posted by Vectro 19 July 2011


Suffix Proxy script is a different concept than Glype or PHPRoxy. First of all, it does not provide anonymity like the others. However, it does a great job of unblocking websites. Another advantage is that it does not require the use of a special address bar like other scripts. Instead, it uses the combination of a DNS wildcard, a web server wildcard and a short PHP script to re-write the URL. If the suffix proxy is installed on and the site you want to visit is, you would visit using your web browser’s normal address bar.

Installing Suffix Proxy involves 4 steps:

  1. Copy and paste the required lines of code to your .htaccess file, which should be in the same directory as the script. If this file already exists, download it via FTP and edit it, then upload it back to your site. If it does not already exist, simply create a file named .htaccess (include the . in front of it) and place the lines there.
  2. Copy and paste the PHP code to a file named browse.php
  3. FTP to your hosting account and upload the browse.php and .htaccess files.
  4. Set up the DNS and Apache wildcard.

Instructions and Code

Click here to download the PHP files, then unzip and upload them to your hosting account.

You will see the following in the .htaccess file. Replace all instances of with your actual domain name:

RewriteEngine On

ErrorDocument 403 "Forbidden"

RewriteCond %{HTTP_HOST} ^(^.*)\$
RewriteCond %{HTTP_USER_AGENT} ^Googlebot
RewriteCond %{HTTP_USER_AGENT} ^Mediapartners-Google
RewriteCond %{HTTP_USER_AGENT} ^Slurp
RewriteCond %{HTTP_USER_AGENT} ^bingbot
RewriteCond %{HTTP_USER_AGENT} ^msnbot
RewriteCond %{HTTP_USER_AGENT} ^Yandex
RewriteRule  ^(.*)$ - [F]

RewriteCond %{HTTP_HOST} ^$
RewriteRule ^(.*)$1 [R=301,L]

RewriteCond %{HTTP_HOST} !^$
RewriteCond %{REQUEST_URI} !^/browse.php
RewriteCond %{REQUEST_URI} !^/robots.txt$
RewriteRule .* /browse.php [L]

The last step is the DNS wildcard. Don’t panic if you’re not sure what that means. The easiest way to do this is to use cPanel if your hosting account includes it. If not, you might have to contact your hosting provider to add the settings for you.

How to use cPanel to set up the wildcard:

  1. Log into cPanel.
  2. Click ‘Subdomains’ from the menu.
  3. In the field that says ‘Subdomain :’, type an asterisks like this: *
  4. Use the pull-down menu to select the domain where Suffix Proxy is installed.
  5. When you click the ‘Document Root :’ field, the necessary info should automatically fill itself in. If it does not, contact your hosting provider.
  6. Click the button that says ‘Create’.

Most hosting companies do not allow proxy scripts. Make sure to find out ahead of time if yours does.

Sorry, comments are closed.

Previous Post
Next Post