can someone help me password protect pages

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • spacedog
    Yes that IS me. Bitch.
    • Nov 2001
    • 14149

    #1

    can someone help me password protect pages

    I'm trying to password protect some pages..

    I'd like to be able to protect certain pages, but don't know how to do this.
    I know how to protect a directory, like /members/ but what about just single pages in the root. Can it be done,, I can't just move the pages into a directory because then the scripts to run the site won't work unless I recode the entire thing,,,

    for example, I know how to password protect domain.com/members/
    but what I want to do is password protect domain.com/members.html without password protecting domain.com

    I hope this is understandable
  • teksonline
    So Fucking Banned
    • Jan 2005
    • 2904

    #2
    icq me

    just need to redirect members.html to /members/ you can't just password protect one file

    Comment

    • MyNameIsNobody
      Confirmed User
      • Dec 2005
      • 2947

      #3
      Wrong posting... ehm
      Last edited by MyNameIsNobody; 07-14-2006, 08:27 AM.

      MyNameIsNobody - ICQ: 279-601-583

      Comment

      • CamsLord
        Confirmed User
        • Jun 2006
        • 3663

        #4
        htaccess
        sig for sale - pornpicz(at)gmail.com

        Comment

        • spacedog
          Yes that IS me. Bitch.
          • Nov 2001
          • 14149

          #5
          Originally posted by teksonline
          icq me

          just need to redirect members.html to /members/ you can't just password protect one file

          hitting you up now,,

          Comment

          • Thomas N
            Confirmed User
            • Aug 2001
            • 973

            #6
            I can tell you exactly what to do, but first you must update us on the "love of my life" drama. Haha just kidding bro

            Actually I don't really know how to do it, I'm sure someone here will hook you up though, good luck.

            Comment

            • RayVega
              Confirmed User
              • Jul 2004
              • 4212

              #7
              ----------------
              To password protect just a single file in a folder, use the following .htaccess file:

              AuthUserFile /full/path/to/.htpasswd
              AuthType Basic
              AuthName "My Secret Page"

              <Files "mypage.html">
              Require valid-user
              </Files>

              This will password protect just the mypage.html file in the folder where you put the .htaccess file.

              -----------
              Ray "The Don" Vega

              Managing Director
              Private Equity Fund

              [email protected]

              Comment

              • spacedog
                Yes that IS me. Bitch.
                • Nov 2001
                • 14149

                #8
                thanks Ray.
                I tried something similar found on Dynamic Drive
                But it does not look like it is working?

                It did for a second & I logged in, now I don't get the prompt anymore.. must because I have cookie maybe

                http://www.77k.org/testing.htm

                is anyone getting the password prompts?

                Comment

                • boldy
                  Macdaddy coder
                  • Feb 2002
                  • 2806

                  #9
                  Originally posted by spacedog
                  thanks Ray.
                  I tried something similar found on Dynamic Drive
                  But it does not look like it is working?

                  It did for a second & I logged in, now I don't get the prompt anymore.. must because I have cookie maybe

                  http://www.77k.org/testing.htm

                  is anyone getting the password prompts?

                  Yep...
                  MacDaddy Coder.

                  Comment

                  • spacedog
                    Yes that IS me. Bitch.
                    • Nov 2001
                    • 14149

                    #10
                    Originally posted by boldy
                    Yep...

                    thanks Boldy

                    what about without the www

                    http://77k.org/testing.htm

                    Comment

                    • boldy
                      Macdaddy coder
                      • Feb 2002
                      • 2806

                      #11
                      Originally posted by spacedog
                      thanks Boldy

                      what about without the www

                      http://77k.org/testing.htm
                      Yep
                      MacDaddy Coder.

                      Comment

                      • spacedog
                        Yes that IS me. Bitch.
                        • Nov 2001
                        • 14149

                        #12
                        Originally posted by boldy
                        Yep

                        thanks,

                        Comment

                        Working...