![]() |
![]() |
![]() |
||||
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 |
Registered User
Join Date: Jan 2003
Location: DELAWARE
Posts: 45
|
help :(
Hey guys, i'm trying to use htaccess to both password protect a directory, and allow certain domains to access the directory also, does anyone know how I can do both?
__________________
ICQ: 171585427 AIM: eHustla420 Mail: mike @ spazzed . com <a href="http://www.spazzed.com" target="_blank">Spazzed.com</a> - Rediculous Adult Entertainment. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Sep 2001
Location: Florida
Posts: 354
|
What I did was add my .htaccess and .htpasswd files as normal to setup the protection. As far as allowing dominas, I had my server techs change my HTTP-Config file. I didn't want to mess with this myself. There was no solution that i saw to make the .htaccess handle this. The Http-Config works like a charm ;^)
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Mar 2002
Location: Mass Ass
Posts: 5,294
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Sep 2001
Location: Florida
Posts: 354
|
I tried the Allow Deny Hyper with no luck.
I think that is for something else. Or I am missunderstanding the question. I beleive they want to allow their members area from one domain to access the content on the other. Allow/Deny would not work in this case. But I am no expert. Just went through it recently. ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Nov 2002
Posts: 7,761
|
mod_rewrite is your friend
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Registered User
Join Date: Jan 2003
Location: DELAWARE
Posts: 45
|
Thx porndaddy, it sounds like you're on the right track. Though my server admin has no idea how to edit httpd to allow domains. Can you give me any more info on how this is done with http config?
__________________
ICQ: 171585427 AIM: eHustla420 Mail: mike @ spazzed . com <a href="http://www.spazzed.com" target="_blank">Spazzed.com</a> - Rediculous Adult Entertainment. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
|
Quote:
Oh, and is all the content on one server or are you accessing content/members areas on other servers? |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Registered User
Join Date: Jan 2003
Location: DELAWARE
Posts: 45
|
Quote:
__________________
ICQ: 171585427 AIM: eHustla420 Mail: mike @ spazzed . com <a href="http://www.spazzed.com" target="_blank">Spazzed.com</a> - Rediculous Adult Entertainment. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
|
AuthType Basic
AuthName "Members Area" AuthUserFile /usr/www/domain.com/nowebaccess/.htpasswd require valid-user Order deny,allow Deny from all allow from xxx.xxx.xxx.xxx allow from domain.com Satisfy any DynaMite ![]()
__________________
| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho | |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
|
You´re welcome
DynaMite
__________________
| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho | |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
Confirmed User
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Registered User
Join Date: Jan 2003
Location: DELAWARE
Posts: 45
|
That doesnt work dynamite, im way past that
__________________
ICQ: 171585427 AIM: eHustla420 Mail: mike @ spazzed . com <a href="http://www.spazzed.com" target="_blank">Spazzed.com</a> - Rediculous Adult Entertainment. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 | |
Confirmed User
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
|
Quote:
AllowOverride All if not check your server error log to see if you have used the right IP referrer. I´m using this and it works very fine. DynaMite
__________________
| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho | |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 | |
Confirmed User
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
|
Quote:
Paste it here and remove all data relevant to your machine and I´ll tell you what´s wrong. This method works perfect I use it a lot DynaMite
__________________
| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho | |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
Confirmed User
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
|
/home/sites/mysite/members/.htaccess: AllowOverride not allowed here
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
Confirmed User
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
|
ok change Options to: Options All -Indexes
You can also put that line on top of your .htaccess file Options All -Indexes DynaMite
__________________
| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho | |
![]() |
![]() ![]() ![]() ![]() ![]() |