How To Upload And Protect A PDF

Do you have a squeeze page for a Free PDF or a digital product and want to know the fastest, simplest way to upload and protect it?

A customer of mine asked me that question today and I thought it would make a good newbie topic.   I covered a download page before in this post, but this is slightly different.

First, I’m going to assume you have your own domain, and do actually know how to upload.  Either via FTP or Cpanel.

Let’s use a PDF as an example.

Step 1. You’ve got a squeeze page and you want to give those who enter their name and email address a free download.

The first thing you should do is “Zip” the PDF for storage online.   You don’t want to upload a “.pdf” file to your domain because Google can index it.

So locate the PDF on your hard drive and right-click it.   Then click: Send To > Compressed Zipped Folder

This will create a zip file with the same name as your PDF.

Step 2

Open up Notepad and save a blank file as “index.html” (change Save as type to: all files)

You need this so your visitors can’t see all the files listed in your download directory.

Step 3

Create a folder on your domain and give it a unguessable name..

Like  dl239x41tu

Step 4

For extra protection create a robots.txt file

This is a file that’s stored in your public_html folder and tells search engines not to index certain files and directories.

In Notepad again paste:

User-agent: *
Disallow: /dl239w41tu/

Save as:  robots.txt

This blocks the search engines from indexing anything in that directory.

Step 5

Upload the robots.txt file to your public_html folder

Upload index.html and your Zip file to your dl239w41tu folder

Once you do the above your zip file will be located in a folder like

http://yourdomain.com/dl239w41tu/filename.zip

And it will be protected as best as possible without using any other scripts and coding.

Simple Way To Protect A Download Page

Have you ever wanted an easy way to password protect a download page or make an easy member site?

I’ve had a few people ask me how I’m protecting my Internet Marketing Bootcamp pages, so I thought I’d do a quick blog post on  it.

If you’ve taken my Bootcamp you know that each day for 22 days I send an email with a link to watch that day’s tutorial videos.

The email includes a username and password to access.

I didn’t want to create a fancy membership site for the bootcamp, I wanted to keep it simple.   So I used a PHP script that literally takes about 1 minute to setup.

The script is located at PHPBuddy.com

All you do is upload one file to the folder where you’re protecting the files, and then use a php include in the files you wish to protect.

The link above will tell you how to set it up, so no sense in me repeating it.

Yes, there are a lot of ways to protect pages with usernames and passwords, but I like this for its simplicity.    Obviously I’m not saying the code is hack proof, or that you use this code to protect anything really sensitive.

But if you need some simple and fast protection… it’s a good solution.


Bad Behavior has blocked 40 access attempts in the last 7 days.