Usage Note 24308: How can I password-protect an ODS HTML output file?
There is not a way to password protect an HTML file created by ODS HTML alone. Password protecting HTML files would usually require the use of a CGI. You can apply some simple JavaScript to an HTML page prevents unwanted viewers from getting to the page, but it is not totally secure. The Prompt dialog box is used to get input from the user regarding the password. The password is set on line 3 of the example code below. If the password is entered correctly, a dialog box is displayed along with the page. If the password is entered incorrectly, a dialog box is displayed and the viewer is referred to another page by the window.location window object. In the example below, the JavaScript is placed in a separate file which makes the password information more difficult to access. You can store the password file and the error file as relative or absolute paths. If this is stored as a relative path, then they would need to be in the same location as the HTML file created. View output, the JavaS