Jump to content

Password Protect Directory not working...


Recommended Posts

Posted

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! :)

Posted

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.

 

Posted

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! :)

Posted

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

 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...