How do you prevent access via a direct URL? - TechRepublic
Question
October 29, 2009 at 12:32 PM
tink!

How do you prevent access via a direct URL?

by tink! . Updated 16 years, 7 months ago

We are going to make PDF files available to clients that login to our website.

My question is, how do I prevent anyone from accessing the PDF by typing the direct url? (i.e. http://companysite.com/File.pdf)

I am using ASP pages and simple ASP codes to do the login and validation on webpages.

Our site is on AT&T Shared Hosting for Windows which provides very limited editability to the .htaccess file.

I think I can do redirects and some simple rewrites, but am not familiar with the rewrite coding needed for displaying a different URL.

Any suggestions are greatly appreciated!

Tink 🙂

[PS. What is with the huge font in the posting box? LOL.]

This discussion is locked

All Comments