Jump to content

Recommended Posts

Posted

Hi When i try to use the "password protect directories" in cpanel , it says "frontpage extension is installed, you can protect using frontpage ".

 

But i can't see any options such that protect directory in frontpage extentsion.

 

Posted (edited)

EDIT:

This is extremely outdated information from 14+ years ago. Up to date information can be found at https://wiki.helionet.org/Password_Protect_a_Directory

END OF EDIT

Create a file named '.htaccess' in the folder you wish to protect and paste the following code:

AuthUserFile /home1/hacker/protected/.htpasswd
AuthGroupFile /dev/null
AuthName "A Restricted Area"
AuthType Basic

<Limit GET POST>
require valid-user
</Limit>
 

 

Create another file named '.htpasswd' in the folder you wish to protect and use this website to generate the contents:

http://www.htaccesstools.com/htpasswd-generator/

 

Don't use the cPanel Password Protect otherwise your work may be overwritten!

 

Source.

Edited by Krydos
Added link to wiki
Posted

@geoff, i cannot follow that article. I don't know where to type the commands . some other says "you need shell"

 

@jje.

Thank you brother. It is working well. I have protected my directory.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...