help :(

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • makinbank
    Registered User
    • Jan 2003
    • 45

    #1

    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.
  • PornDaddy
    Confirmed User
    • Sep 2001
    • 354

    #2
    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 ;^)

    Comment

    • hyper
      Confirmed User
      • Mar 2002
      • 5294

      #3
      allow deny
      http://www.awtrey.com/support/webhost/access.php

      Comment

      • PornDaddy
        Confirmed User
        • Sep 2001
        • 354

        #4
        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.


        Comment

        • goBigtime
          Confirmed User
          • Nov 2002
          • 7761

          #5
          mod_rewrite is your friend

          Comment

          • makinbank
            Registered User
            • Jan 2003
            • 45

            #6
            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.

            Comment

            • p00p
              Confirmed User
              • Dec 2002
              • 5125

              #7
              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?
              ICQ: 316365783
              <a href="http://www.hostultra.com/~p00p" target="_blank">TEST</a>

              Comment

              • makinbank
                Registered User
                • Jan 2003
                • 45

                #8
                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.

                Comment

                • p00p
                  Confirmed User
                  • Dec 2002
                  • 5125

                  #9
                  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.
                  ICQ: 316365783
                  <a href="http://www.hostultra.com/~p00p" target="_blank">TEST</a>

                  Comment

                  • ServerGenius
                    Confirmed User
                    • Feb 2002
                    • 9377

                    #10
                    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 |

                    Comment

                    • ServerGenius
                      Confirmed User
                      • Feb 2002
                      • 9377

                      #11
                      You´re welcome

                      DynaMite
                      | http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |

                      Comment

                      • p00p
                        Confirmed User
                        • Dec 2002
                        • 5125

                        #12
                        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.
                        ICQ: 316365783
                        <a href="http://www.hostultra.com/~p00p" target="_blank">TEST</a>

                        Comment

                        • makinbank
                          Registered User
                          • Jan 2003
                          • 45

                          #13
                          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.

                          Comment

                          • ServerGenius
                            Confirmed User
                            • Feb 2002
                            • 9377

                            #14
                            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 |

                            Comment

                            • ServerGenius
                              Confirmed User
                              • Feb 2002
                              • 9377

                              #15
                              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 |

                              Comment

                              • p00p
                                Confirmed User
                                • Dec 2002
                                • 5125

                                #16
                                /home/sites/mysite/members/.htaccess: AllowOverride not allowed here
                                ICQ: 316365783
                                <a href="http://www.hostultra.com/~p00p" target="_blank">TEST</a>

                                Comment

                                • ServerGenius
                                  Confirmed User
                                  • Feb 2002
                                  • 9377

                                  #17
                                  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 |

                                  Comment

                                  Working...