A simple .htaccess question...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CurrentlySober
    Too lazy to wipe my ass
    • Aug 2002
    • 38948

    #1

    A simple .htaccess question...

    My file currently reads:

    AuthUserFile /dev/null
    AuthGroupFile /dev/null
    AuthName RESTRICTED
    AuthType Basic

    <Limit GET POST>
    require valid-user
    </Limit>

    What I want to do, is too add the line that will
    allow all traffic from a specifed IP...

    Thing is though, I must be getting old,
    Cause I cant for the life of me
    remember the cortrect syntax...

    TIA

    TGITC


    👁️ 👍️ 💩
  • who
    So Fucking Banned
    • Aug 2003
    • 19593

    #2
    Hi.

    Allow from 10.1.2.3

    Comment

    • studiocritic
      Confirmed User
      • Jun 2005
      • 2442

      #3
      http://httpd.apache.org
      254342256

      Comment

      • selena
        Confirmed User
        • Aug 2004
        • 7995

        #4
        Try

        <Limit GET POST>
        order deny,allow
        deny from all
        allow from xxx.xxx.xxx.
        </Limit>
        ~
        Doer of Things at
        MetArtMoney
        Where Flawless Beauty Meets Art
        ~The MetArt Network ~
        selena.delgado9

        Comment

        • CurrentlySober
          Too lazy to wipe my ass
          • Aug 2002
          • 38948

          #5
          OK so 'allow from 'p.ip.ip.ip'

          But at what point in the file ?
          In other words before or after which line?

          TIA

          TGITC


          👁️ 👍️ 💩

          Comment

          • who
            So Fucking Banned
            • Aug 2003
            • 19593

            #6
            Originally posted by ThatGuyInTheCorner
            OK so 'allow from 'p.ip.ip.ip'

            But at what point in the file ?
            In other words before or after which line?

            TIA

            TGITC
            At the start. put this if you just want to control the www. directory:

            <Directory /www>
            Order Deny,Allow
            Allow from 'p.ip.ip.ip'
            </Directory>
            Last edited by who; 01-11-2006, 03:17 AM.

            Comment

            • CurrentlySober
              Too lazy to wipe my ass
              • Aug 2002
              • 38948

              #7
              OK Thanks...
              Just one final Q.
              The addition of

              <Limit GET POST>
              order deny,allow
              deny from all
              allow from xxx.xxx.xxx.
              </Limit>

              Will not affect a registered subscribers ability to enter ?

              TIA


              👁️ 👍️ 💩

              Comment

              • CurrentlySober
                Too lazy to wipe my ass
                • Aug 2002
                • 38948

                #8
                Hi Who,
                Its the members area, as in a standard ccBill setup...


                👁️ 👍️ 💩

                Comment

                • emthree
                  Dialer Kingpin
                  • Jun 2003
                  • 10816

                  #9
                  deny from all, will deny access to all.
                  What you want to do is allow ip in the folder you want to keep protected.

                  Sell Patches & Pills

                  Comment

                  • sinnerscorner
                    Confirmed User
                    • Jul 2004
                    • 194

                    #10
                    Originally posted by ThatGuyInTheCorner
                    OK Thanks...
                    Just one final Q.
                    The addition of

                    <Limit GET POST>
                    order deny,allow
                    deny from all
                    allow from xxx.xxx.xxx.
                    </Limit>

                    Will not affect a registered subscribers ability to enter ?

                    TIA

                    You can also try

                    Satisfy Any
                    AuthType Basic
                    AuthName "Members Area"
                    AuthUserFile /pathonyourservertothe.htpasswdfile
                    AuthGroupFile /dev/null
                    <Limit GET POST>
                    require valid-user
                    order deny,allow
                    deny from all
                    allow from ipnumber
                    </Limit>

                    I had this working both useraccess and ip access worked.
                    -- ok there is no sig here --

                    Comment

                    Working...