Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-13-2003, 01:50 PM   #1
schilli
Confirmed User
 
Join Date: Jun 2002
Location: Toronto, Ontario, Canada
Posts: 265
htaccess question --

More htaccess questions.

Here's the htaccess I'm using to protect my members area:
AuthUserFile /usr/local/apache/www/chriss/chezchris.ca/data/.htpasswd
AuthName MEMBERS
AuthType Basic

<Limit GET POST>
require valid-user
</Limit>

I want to be able to offer a "tiered" membership option allowing access to more withing my membership area for more money. So I need to protect directories separately. With the file listed above does anyone know if I can add some lines in??? I'd try it on my server but I don't want to mess with my present customers and accidently block them out. I'd basically be adding separate data locations for the password files to different directories. So does anyong know if I can do this --

AuthUserFile /usr/local/apache/www/chriss/chezchris.ca/data/.htpasswd
AuthUserFile /usr/local/apache/www/chriss/chezchris.ca/vdata/.htpasswd
AuthUserFile /usr/local/apache/www/chriss/chezchris.ca/data1/.htpasswd
AuthUserFile /usr/local/apache/www/chriss/chezchris.ca/data2/.htpasswd
AuthUserFile /usr/local/apache/www/chriss/chezchris.ca/data#/.htpasswd
AuthName MEMBERS
AuthType Basic

<Limit GET POST>
require valid-user
</Limit>


schilli is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-13-2003, 09:35 PM   #2
schilli
Confirmed User
 
Join Date: Jun 2002
Location: Toronto, Ontario, Canada
Posts: 265
schilli is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-13-2003, 10:08 PM   #3
some_idiot
Confirmed User
 
Join Date: May 2002
Location: Doesn't matter, I'm not buying you another pint!
Posts: 1,511
Well you seem to be hurting here... so I ran through the
mod_auth source code. (I assume you are using Apache)

Nope, mod_auth only supports 1 password file per directory
declaration.

It is trivial to extent this, but if you think about what you're
doing this isn't the way you want to it. By doing it at root, you've
given even the most basic user access all the way down the tree.
Rewriting the entire authentication method to work backwards,
would NOT be trivial.


You might want to look at grouping and using that to restrict
further down the tree.
__________________

This AVS pays my mortgage!

Last edited by some_idiot; 04-13-2003 at 10:12 PM..
some_idiot is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-13-2003, 10:18 PM   #4
Warden
Confirmed User
 
Join Date: Nov 2002
Location: Valencia, CA
Posts: 2,906
I know there are scripts/API's that will use a DB for auth instead of the user/password files that htaccess normally queries. Below is a link to a great resource board. Good luck

http://forums.devshed.com/
__________________
AIM: ZeeRiddler
ICQ: 128160005
Warden's MS
Warden is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.