close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

how to protect a file from regular URL Access

Thread began 9/27/2010 2:33 pm by chriswestuk415409 | Last modified 9/27/2010 4:30 pm by chriswestuk415409 | 903 views | 3 replies

Christopher WestCommunity Expert

how to protect a file from regular URL Access

Hi there, my head is spinning from this logical problem

ok, here is the problem, I require a user to be logged into website, then they can get a link which points to a file (the admin has recently uploaded (its a pdf document). ok thats simple right....well "what if" another user knows the filename of that document and also knows the website address where that file would be uploaded to. this means they they would not need to be logged into the website. they can simple go directly to that file..this ia really important to me that i can stop this type of access..

obviously cannot do theis using file permissions of folders in FTP client because that means the link i provide on ther website will also not be able to access the same file.

I have thought about .htaccess but i dont know what to change in that file. I thought about "masking" the filename or directory name but having no success with that at the moment. if the solution is .htaccess then not sure if the bottom of the browser would still display the true link.

also it is documented that i upload files off the website root. however how cna i do this? I am using a shared hosting. so how could i access off the site root?


Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...