Help - Search - Members - Calendar
Full Version: Is it possible to password protect a file
Hostony Board > Cpanel/WebHost Manager support > Cpanel/WHM Issues
Mikr0n
I can see that I am able to password protect a folder but can I password protect a certain .html file and give only people that have asked for access to a certain part of a web site that abillity to view it?

Marcus
Lehrer
Mikron, you can password protect a file with the help of .htaccess, the same as for a folder:

Let's say we need to do it for private.zip file

private.zip:

AuthName "Users zone"
AuthType Basic
AuthUserFile /pub/home/your_login/.htpasswd
Mikr0n
This can be used for an HTML extension as well?
Lehrer
Yes, it can be done for html extentions too.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.
IPS Driver Error

IPS Driver Error

There appears to be an error with the database.
You can try to refresh the page by clicking here