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 Mark Forums Read
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 04-03-2003, 10:11 AM   #1
makinbank
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.
makinbank is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-03-2003, 10:34 AM   #2
PornDaddy
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 ;^)
PornDaddy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-03-2003, 11:01 AM   #3
hyper
Confirmed User
 
Join Date: Mar 2002
Location: Mass Ass
Posts: 5,294
allow deny
http://www.awtrey.com/support/webhost/access.php
__________________
hyper is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-03-2003, 01:12 PM   #4
PornDaddy
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.


PornDaddy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-03-2003, 01:15 PM   #5
goBigtime
Confirmed User
 
Join Date: Nov 2002
Posts: 7,761
mod_rewrite is your friend
goBigtime is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-04-2003, 11:46 AM   #6
makinbank
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.
makinbank is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-04-2003, 12:43 PM   #7
p00p
Confirmed User
 
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
Quote:
Originally posted by makinbank
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?
What are you trying to do? Allow members to access the members area of other sites you have? Or, do you just want members from one members area to access content from another members area? I have come across both problems, and have found good solutions for both.
Oh, and is all the content on one server or are you accessing content/members areas on other servers?
p00p is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-04-2003, 01:17 PM   #8
makinbank
Registered User
 
Join Date: Jan 2003
Location: DELAWARE
Posts: 45
Quote:
Originally posted by p00p

What are you trying to do? Allow members to access the members area of other sites you have? Or, do you just want members from one members area to access content from another members area? I have come across both problems, and have found good solutions for both.
Oh, and is all the content on one server or are you accessing content/members areas on other servers?
I want members from one members area to access content from another members area. all the content is on the same server.
__________________
ICQ: 171585427
AIM: eHustla420
Mail: mike @ spazzed . com
<a href="http://www.spazzed.com" target="_blank">Spazzed.com</a> - Rediculous Adult Entertainment.
makinbank is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-04-2003, 02:21 PM   #9
p00p
Confirmed User
 
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
Quote:
Originally posted by makinbank


I want members from one members area to access content from another members area. all the content is on the same server.
Set up symbolic links. Works like a charm. And fire your admin for not thinking of this solution.
p00p is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-04-2003, 02:27 PM   #10
ServerGenius
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 |
ServerGenius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-04-2003, 02:29 PM   #11
ServerGenius
Confirmed User
 
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
You´re welcome

DynaMite
__________________
| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |
ServerGenius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-04-2003, 02:35 PM   #12
p00p
Confirmed User
 
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
Quote:
Originally posted by DynaSpain
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
Didn't work for me...still got the authentication box.
p00p is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-04-2003, 02:37 PM   #13
makinbank
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.
makinbank is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-04-2003, 02:38 PM   #14
ServerGenius
Confirmed User
 
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
Quote:
Originally posted by p00p

Didn't work for me...still got the authentication box.
This 100% works. Add:
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 |
ServerGenius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-04-2003, 02:40 PM   #15
ServerGenius
Confirmed User
 
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
Quote:
Originally posted by makinbank
That doesnt work dynamite, im way past that
If it doesn´t work then you´re apache config is not correct.
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 |
ServerGenius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-04-2003, 02:46 PM   #16
p00p
Confirmed User
 
Join Date: Dec 2002
Location: CanaDUH
Posts: 5,125
/home/sites/mysite/members/.htaccess: AllowOverride not allowed here
p00p is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-04-2003, 03:24 PM   #17
ServerGenius
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 |
ServerGenius 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
Thread Tools



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.