Use DropBox as a Dynamic Webserver!

dropbox logo
To download these tutorials for OFFLINE viewing or for archive purposes please (Click here to download)
(Clicking the “.zip” will open the Archive, un-zip the .mht files then use one of the plugins below to view them)

You can open .mht WebArchive files directly inside FireFox Or Google Chrome by installing a plugin


Your Dropbox account comes with a special “Public” folder that you may use to host documents, images, and other stuff that you want to share with everyone. To give you an example, I distribute our proxy updater utility only through my Dropbox Public folder – the file is always available for download and puts little strain on the server everyone wins. The users get the app quickly and my host doesn’t get Termination threats from FACT etc.

Personalized Dropbox URLs

Public URLs on Dropbox follow a very standard pattern as illustrated above. The first part of the URL, which reads like dl.dropbox.com/u/ID/ is common for a Dropbox user and you can easily map it to your own domain or sub-domain.

This will make your Dropbox URLs appear less complex, you get to indirectly promote your brand since its now mentioned in the download links and, best of all, you can track individual file downloads. (Something you can’t do as default)

How to Map Dropbox to your Web Domain

Option A. If you have a domain and a host running Apache, use the following approach:

Step 1. Go to your cPanel and setup a new sub-domain (for example, files.yourdomain.com).
(This should create a new directory on the FTP with the same DIR name i.e. files)

Step 2. Log in to your server and create a new file called .htaccess in the above directory.
(Do remember to replace XYZ example below with your own Dropbox ID)

Add this snippet below

RewriteEngine on
RewriteRule ^(.*)$ http://dl.dropbox.com/u/XYZ/$1 [L,QSA]

That’s it. Now before sharing a Dropbox URL, replace dl.dropbox.com/u/ID with your web address (like files.yourdomain.org)
and the recipients will still be able to download your files as before.

Option B. If you don’t have access to a web host, you may use Google App Engine to have custom Dropbox URLs.

Step 1: Download the source code for your new project from code.google.com and make the following changes in the code.

  • Replace XYZ in mirror.py with your Dropbox user ID number.
  • Replace APPNAME in appl.yaml with some unique name.

Step 2: Deploy the above project through the Google App Engine launcher.

Step 3: This is optional. If you already have a web domain configured with Google Apps, you may serve your Dropbox redirection app on that domain else your Dropbox URLs will have structure like appname.appspot.com but without your Dropbox ID.