decorative banner

Password


    The Password action lets you protect pages with a reasonable level of security without any server-side scripting. Unlike other JavaScript password-protection scripts, this action uses an encrypted password and cannot be bypassed by turning off JavaScript in the browser or viewing the source code. Creating the Password action consists of three parts: using a provided HTML file to generate an encrypted password, naming the password-protected page appropriately, and applying a Password action to a page that refers to the password-protected page.

    Although the Password action provides a reasonable level of security, it is still possible to bypass the password. It is therefore not recommended for sites that require a high level of security. Also, the password-protected file must be placed in a directory that contains a default root page such as index.html (depending on your ISP), so that the contents of the directory cannot be viewed by entering the directory location into the browser.

    Use your browser to open the file makepassword.html located in the GoLive 6.0/Modules/JScript/Actions/Message folder. The password you choose is case-sensitive and should not contain any spaces. Click the link on the makepassword.html page. Enter the password you want to use in the dialog box that appears and click OK. Write down the encrypted version of the password that follows "The encrypted password is" in the alert message.

    Name the page that will be password-protected using the nonencrypted version of your password plus the suffix .html. For example, if your password is Sommer, the password-protected page name must be Sommer.html.

    Trigger the action with a user-triggered event in a page other than the page that will be password-protected. (Do not link to the password-protected page or to anything else with the trigger link.) Choose Action > Message > Password. In the Encrypted Password text box, enter the encrypted password you wrote down. For Alert On Correct Login, enter any message you want to display when viewers enter the correct, nonencrypted password. Make sure the password-protected page and the page that links to it are located in the same directory.