Use Dropbox with your own Web Domain

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 the Always on Top utility only through my Dropbox Public folder – the file is always available for download and puts little strain on the server.

Personalized Dropbox URLs

dropbox public links

All public URLs on Dropbox follow a very standard pattern as illustrated above. The first part of the URL, which reads like, 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.

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, This should create a new directory with the same name on your server.

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

RewriteEngine on RewriteRule ^(.*)$$1 [L,QSA]

That’s it. Now before sharing a Dropbox URL, replace with your web address (like 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 and make the following changes in the code.

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

Step 2: Deploy the above project through the Google App Engine launcher. Refer to my previous Web Proxy tutorial for details on how to get started with GAE.

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 but without your Dropbox ID.

PS:You may use CNAME addresses to map Dropbox URLs to any sub-domain but in that case, the mapping will only happen at the root level and thus your custom URLs will still look complex – you don’t want your URLs to look like

[**] You are only re-mapping URLs and thus the previously-stated bandwidth limits in Dropbox will still apply to all your file downloads.

Amit Agarwal

Amit Agarwal

Google Developer Expert, Google Cloud Champion

Amit Agarwal is a Google Developer Expert in Google Workspace and Google Apps Script. He holds an engineering degree in Computer Science (I.I.T.) and is the first professional blogger in India.

Amit has developed several popular Google add-ons including Mail Merge for Gmail and Document Studio. Read more on Lifehacker and YourStory


Awards & Titles

Digital Inspiration has won several awards since it's launch in 2004.

Google Developer Expert

Google Developer Expert

Google awarded us the Google Developer Expert award recogizing our work in Google Workspace.

ProductHunt Golden Kitty

ProductHunt Golden Kitty

Our Gmail tool won the Lifehack of the Year award at ProductHunt Golden Kitty Awards in 2017.

Microsoft MVP Alumni

Microsoft MVP Alumni

Microsoft awarded us the Most Valuable Professional (MVP) title for 5 years in a row.

Google Cloud Champion

Google Cloud Champion

Google awarded us the Champion Innovator title recognizing our technical skill and expertise.

Email Newsletter

Sign up for our email newsletter to stay up to date.

We will never send any spam emails. Promise.