Before taking a site "live", I password protect it except the robots.txt for search engines and custom Error pages. You can adapt this to your own use and add other pages in the FilesMatch directive.
- # These pages are public
- <FilesMatch "^(robots\.txt|errorpage\.php)$">
- order allow,deny
- allow from all
- # The rest of the site is private
- AuthUserFile /path/to/your/.htpasswd
- AuthType Basic
- AuthName "Login Required"
- Require valid-user
- Order allow,deny
- Satisfy any
You need to login to post a comment.