3 Replies Latest reply on Feb 12, 2010 3:59 PM by MarketingGuy23

    Password protected page

    MarketingGuy23

      How do I make a web page accessible only when the correct password is submitted?

       

      Thanks;

      Pat

        • 1. Re: Password protected page
          tbejot

          That depends upon what level of security you need and what you have available.  The most common method is to activate a session variable using ASP, PHP, etc.  You test for the presence of a session variable and it's value.  If the value is OK then show the page, if not, you send them to another page of your choosing. You can choose to encrypt these variables, require confirmation of the variable, such as a password, to prevent hackers who steal the session variable from getting access to very sensitive information.  Always require re-logins to very sensitive info.

           

          If you don't have access to ASP,PHP you can set cookie variables using javascript.  However, javascript is discoverable so you need to hide it by putting it in a src page.  Hackers can find this page so only use this if you just want to prevent the occasional lurker from accessing the page.

           

          Terry

          1 person found this helpful
          • 2. Re: Password protected page
            bregent Most Valuable Participant

            In addition to the server side scripting method listed above, you can easily add password protection to any folder in your site using web server security located in your host control panel.