1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Password protect all files but one?

Discussion in 'Plesk for Linux - 8.x and Older' started by LARyan, Apr 6, 2006.

  1. LARyan

    LARyan Guest

    We're creating a new site for a client. We want to keep it password protected from the general public during development. Is there a way to password protect all files and directories, except the index.html?
  2. pixelmeister

    pixelmeister Guest

    Hi LARyan,

    here is my .htaccess file:

    AuthType Basic
    AuthName "Secure"
    AuthUserFile /path/to/.htpasswd
    <Files *.*>
    require valid-user
    <Files index.html>
    satisfy any
    <Files .htaccess>
    order allow,deny
    deny from all

    Hope that helps :)
  3. LARyan

    LARyan Guest

    Thank you for the quick response. I'll try this out today.