View Full Version : Password-protected file transfers?
braimee
08-26-2006, 04:21 PM
Hi,
I'd like to have an area on my site in which a user goes to one of my pages and is prompted with a password field on the page. Once the password is submitted and accepted, they would be "pushed" a file. Any advice?
Brian
dvessel
08-26-2006, 04:31 PM
There are plenty of CMS solutions that could handle this but it comes with a lot of baggage. If all you want is to secure your downloads it's very easy by setting up a directory with a password through cPanel.
All you would need to do is set up your links on a page then link to them. A dialog box would show up asking for the username and password when someone clicks. It's not the prettiest way to do it but it's very effective.
Set up a directory where you'd want to store the files then go into your cPanel. Click on "Password Protect Directories" and look for the directory where you will keep the files. It's pretty straight forward from there.
Basil
08-26-2006, 11:12 PM
I don't know if you mean a single login for all the files or a different login for every file, but here's how you could do it with a single login.
You make a typical htaccess file for password protection (http://www.javascriptkit.com/howto/htaccess3.shtml), and then put something like
<FilesMatch ".*\.(zip)$">
</FilesMatch> around it.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.