.htaccess

ryu

New Member
Does anyone know how to setup a .htaccess for a VIP section, where everyone has their own user name and password? For example, when you click the HTTP link, you'll be prompt with:

then you'll get the file download manager:

I guess this also uses CGI to generate the user names and passwords?
 

Grinderhand

New Member
If you move the attachments out of the database and into the file system, you could put an .htaccess on the folder that holds the files. Never tried it so I'm not sure it would work, but it should work theoretically.
 

ryu

New Member
I'm using external links. I figured out a way:

.htaccess should look like this:

Code:
AuthName "Private"
AuthUserFile /path/.htpasswd
AuthType Basic
require valid-user

and .htpasswd would have the usernames with a semicolon after the usernames, which will grant everyone access:

Code:
username:password
username:password
 
Top