Simple Quesion...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • new_bie
    Registered User
    • May 2001
    • 19

    #1

    Simple Quesion...

    I didn't know where to post this but this place is great for answers.

    Does anyone know how to password protect a section of your site? Like just one html file. So that only friends can check them out...

    Thanx in advance,



    ------------------
    ~!@#$%^&*()_+
    ~!@#$%^&*()_+
  • DragonAss
    Confirmed User
    • May 2001
    • 206

    #2
    You can do it with .htaccess blocks.

    See this for an example.

    [Files foo.html]
    AuthName "Insiders Only"
    AuthType Basic
    AuthUserFile /usr/local/web/apache/.htpasswd-foo
    Require valid-user
    [/Files]

    (those brackets should be gt lt signs like html... but html is taken out of this post)

    The whole tutorial.

    HTH


    [This message has been edited by DragonAss (edited 06-15-2001).]

    [This message has been edited by DragonAss (edited 06-15-2001).]

    Comment

    • tenletters
      Confirmed User
      • Jan 2001
      • 2079

      #3
      I think you can also do it with javascript so you may want to put your search engine cap on.
      Useless Without Pics

      Comment

      • Lane
        Will code for food...
        • Apr 2001
        • 8496

        #4
        Originally posted by tenletters:
        I think you can also do it with javascript so you may want to put your search engine cap on.
        js is not secure enuf

        ------------------
        Best Free CJ script
        Cjultra.com
        icq: 6757061

        Comment

        • MrCockTale
          Confirmed User
          • Jan 2001
          • 669

          #5
          Originally posted by Lane:
          js is not secure enuf
          I don't think he really needs the most-secured thing on earth.

          ------------------
          Life's a bitch
          =========================
          www.pink-post.com

          Comment

          Working...