9 Replies Latest reply on Apr 13, 2010 7:20 AM by hans-g.

    Password protecting test site

    evilJim Level 1

      Hi I wanted to password protect a test site I have been making to show to selected people. I found this tutorial using PHP which seems pretty straightforward.

      http://www.zubrag.com/scripts/password-protect.php

      The one problem is it says It will show you protection code to include into your pages. "Sample protection code would look like this (yours will be different): <?php include("/home/users/htdocs/security/password_protect.php"); ?>

      Add that line of code to each php page you would like to protect at the very beginning of the page source (it must be the first line)." Now the problem is that my page is html based, can I add a token PHP page to my index page that just has that bit of code in to password protect it and how would I add the PHP page?

      Thanks in advance