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 11-04-2005, 09:43 PM   #1
AmeliaG
Too lazy to set a custom title
 
AmeliaG's Avatar
 
Join Date: Jan 2003
Location: Los Angeles
Posts: 10,606
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.
__________________
GFY Hall of Famer

AltStar Hall of Famer




Blue Blood's SpookyCash.com

Babe photography portfolio
AmeliaG is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-04-2005, 10:45 PM   #2
2HousePlague
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!

Last edited by 2HousePlague; 11-04-2005 at 10:47 PM..
2HousePlague is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-05-2005, 12:39 AM   #3
darksoul
Confirmed User
 
darksoul's Avatar
 
Join Date: Apr 2002
Location: /root/
Posts: 4,997
just have a script that concats the two .htaccess files in a 3rd one.
__________________
1337 5y54|)m1n: 157717888
BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
Cambooth
darksoul is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-05-2005, 02:38 AM   #4
Penthouse_mike
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/
Penthouse_mike is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-05-2005, 06:04 AM   #5
Radiate
Confirmed User
 
Join Date: Dec 2004
Location: the center
Posts: 1,454
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
__________________

icq 199437756 - contact me if you need a solid hosting solution
Radiate is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-05-2005, 06:37 AM   #6
Calvinguy
Confirmed User
 
Join Date: Oct 2002
Location: European Union
Posts: 1,752
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?
Calvinguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-01-2006, 04:22 AM   #7
gooddomains
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
gooddomains is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-01-2006, 04:30 AM   #8
darksoul
Confirmed User
 
darksoul's Avatar
 
Join Date: Apr 2002
Location: /root/
Posts: 4,997
damn old thread.
__________________
1337 5y54|)m1n: 157717888
BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
Cambooth

Last edited by darksoul; 06-01-2006 at 04:31 AM..
darksoul is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2006, 01:36 PM   #9
AmeliaG
Too lazy to set a custom title
 
AmeliaG's Avatar
 
Join Date: Jan 2003
Location: Los Angeles
Posts: 10,606
How surreal that this got bumped.
__________________
GFY Hall of Famer

AltStar Hall of Famer




Blue Blood's SpookyCash.com

Babe photography portfolio
AmeliaG 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.