Jump to content

Password Protect Directory not working...


KratosPC

Recommended Posts

Hello all,

 

Anyone have an idea why password protect wouldn't be working on my folders?

 

Front page extensions are disabled and I followed the video tutorial. I mean, it's a pretty straight forward process. If I go to access the folder, no password prompt. Do I have to change permission of the folder?

 

Any help is greatly appreciated!

 

Also, what common folders should I remove from public view? Ie image folders, script folders, etc etc. Just want my site to be secure!

 

Thanks! :)

Link to comment
Share on other sites

Go to the folder that you've password protected and look inside the .htaccess file and see if cpanel has updated it with the password protection code and post it here. Also did you complete two steps when creating the password protected directory? First you give it a name and click submit, then you go back and add user and password.

 

I wouldn't worry too much about your site being secure. You still want to keep most of your site for public view. Just creat ever how many password protected directories you feel you need for personel stuff.

 

Link to comment
Share on other sites

Hey Byron,

 

Looks like I was doing it wrong after all!

 

I was creating the directory and the user at the same time. Didn't realize you had to complete one before doing the other. You'd imagine cPanel would put them on separate pages...

 

Anyway, thanks for the help! :)

Link to comment
Share on other sites

Your welcome!

 

Here's a neat little trick I use on my password protected directories. It keeps my from having to login all the time. If you add this code right under the the cpanel generated code it will allow your ip address (without login) and require password from all others.

 

Order Allow,Deny
Allow from 172.17.10.1
Satisfy Any

 

Be sure to change 172.17.10.1 to your ip. You can also have multiple Allow lines if you login from more than one computer:

 

Allow from 172.17.10.1

Allow from 267.79.09.10

Allow from 200.183.706.55

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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...