GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Multiple password files .htaccess question (https://gfy.com/showthread.php?t=536667)

AmeliaG 11-04-2005 09:43 PM

Multiple password files .htaccess question
 
How would I go about setting an .htaccess or other system so that the members area allows surfers from two different password files to both access the same site?

Here are a few examples of what I mean:

(1) If I wanted to put comp passes in one file and paid passes in another file and have the passes in both files have access to the same site.

(2) If I wanted to have a bonus free site and give access to that site to members of two membership sites, so that surfers had access to that bonus site so long as they remained a member of one of the two membership sites it was a bonus for and were removed in tandem with when the regular paid pass was removed.

(3) If I wanted to keep CCBill passes and Paycom passes for the same site in two different files, but I wanted to give the same members area access.

Anyone have any ideas on how to best accomplish this? Thanks.

2HousePlague 11-04-2005 10:45 PM

You will need to create an .htaccess file in the folder that you want to limit access.

Proceed with the following steps:

* To create the .htaccess file, you will need to download a text editor that doesn't object when you save a file with a name that only has an "extension" such as .htaccess. Go to http://www.notetab.com/ and download the NoteTab Light version (Free Software).
* Open NoteTab and copy the following text in a new window:

<Limit GET POST>
order deny,allow
deny from all
allow from all
require user NetID1 NetID2 NetID3 ...
</Limit>
AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthName ND.EDU
AuthType Kerberos

* In the above text, the id's that you want to grant access to should replace NetID1 NetID2 and so on.
* Save the text file as .htaccess (make sure you include the 'period' at the beginning) in the root of the folder that you want to restrict access rights to.
* The only user's who will be able to access the folder will be those that you added to the .htaccess file

If you only want to allow access to those who are connected to a VPN, use the following (it specified the range of ip address that the Notre Dame network & vpn uses):

AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthName AllowFromND
AuthType Basic
<Limit GET>
order deny,allow
deny from all
allow from 129.74.0.0/16 66.254.224.0/19 172.17.0.0/17
</Limit>

And this page will help you | -- balance directives -- |

hope that helps, though, i msut say there are other approaches to this.

2hp

darksoul 11-05-2005 12:39 AM

just have a script that concats the two .htaccess files in a 3rd one.

Penthouse_mike 11-05-2005 02:38 AM

I would ask your host to install mod_auth_mysql
which would allow you to do everything you describe.


http://sourceforge.net/projects/mod-auth-mysql/

Radiate 11-05-2005 06:04 AM

Quote:

Originally Posted by Penthouse_mike
I would ask your host to install mod_auth_mysql
which would allow you to do everything you describe.


http://sourceforge.net/projects/mod-auth-mysql/

I agree, I think mod_auth_mysql is a great tool for authorization. Can do so much more with it than using .htaccess

Calvinguy 11-05-2005 06:37 AM

Quote:

Originally Posted by Penthouse_mike
I would ask your host to install mod_auth_mysql
which would allow you to do everything you describe.


http://sourceforge.net/projects/mod-auth-mysql/

But will it make a query for every request in the membersarea? How about the load then?

gooddomains 06-01-2006 04:22 AM

it is the perfect module, works fine even with lots of users

darksoul 06-01-2006 04:30 AM

damn old thread.

AmeliaG 06-02-2006 01:36 PM

How surreal that this got bumped.


All times are GMT -7. The time now is 03:03 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123