How to password protect a single file

m (Created page with "<div align=-justify>To password protect a single file, make sure you have the following files under your account: .htpasswd (containing the username and password to access the ...")
 
m
Line 1: Line 1:
 
<div align=-justify>To password protect a single file, make sure you have the following files under your account:
 
<div align=-justify>To password protect a single file, make sure you have the following files under your account:
  
.htpasswd (containing the username and password to access the file)
+
* .htpasswd (containing the username and password to access the file)
  
.htaccess (containing the authentication rules)
+
* .htaccess (containing the authentication rules)
  
 
In case these files aren't listed under your account, you can create them via your cPanel => File Manager or via any FTP client.
 
In case these files aren't listed under your account, you can create them via your cPanel => File Manager or via any FTP client.

Revision as of 12:05, 5 January 2012

rss feed for my website