|
|
|
||||
|
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. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Too lazy to set a custom title
Join Date: Jan 2003
Location: Los Angeles
Posts: 10,606
|
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.
__________________
![]() Blue Blood's SpookyCash.com Babe photography portfolio |
|
|
|
|
|
#2 |
|
CURATOR
Join Date: Jul 2004
Location: the attic
Posts: 14,572
|
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
__________________
tada! |
|
|
|
|
|
#4 |
|
Confirmed User
Industry Role:
Join Date: Jun 2003
Location: Silicon Valley
Posts: 317
|
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/ |
|
|
|
|
|
#5 | |
|
Confirmed User
Join Date: Dec 2004
Location: the center
Posts: 1,454
|
Quote:
|
|
|
|
|
|
|
#6 | |
|
Confirmed User
Join Date: Oct 2002
Location: European Union
Posts: 1,752
|
Quote:
|
|
|
|
|
|
|
#7 |
|
Too lazy to set a custom title
Join Date: Jul 2003
Location: Netherlands
Posts: 10,127
|
it is the perfect module, works fine even with lots of users
|
|
|
|
|
|
#8 |
|
Confirmed User
Join Date: Apr 2002
Location: /root/
Posts: 4,997
|
damn old thread.
|
|
|
|
|
|
#9 |
|
Too lazy to set a custom title
Join Date: Jan 2003
Location: Los Angeles
Posts: 10,606
|
How surreal that this got bumped.
__________________
![]() Blue Blood's SpookyCash.com Babe photography portfolio |
|
|
|