![]() |
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. |
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 |
just have a script that concats the two .htaccess files in a 3rd one.
|
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/ |
Quote:
|
Quote:
|
it is the perfect module, works fine even with lots of users
|
damn old thread.
|
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