cancel
Showing results for 
Search instead for 
Did you mean: 

Password protecting Pages on the website

resm1401
Member

Hi,

 

I have flicked through about 20 pages on the forum looking for a solution but to no avail.

 

Basically, I am looking to incorporate a couple of 'members only' pages on my website (built with ESW Pro) that fellow members of my club can access with the correct password. I thought I had it working by creating a form and adding in username and password boxes, but when I tested it I found the desired page was reached irrespective of what password (if any at all) was entered.

 

I have came across a couple of posts mentioning something along the lines of 'htmaccess' or to that affect; however as I am a self taught novice only just getting to grips with the designer software, let alone codes, this means absolutely nothing to me.... Please help?!

 

Many thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions

Krystal
Member

I'm not sure how BT do this - I use cpanel on linux servers and as mentioned .htacess is the way forward - but your better doing this via a cpanel of sorts as the .htaccess file must read a file for the password that file must reside above the web root. I suspect BT and I maybe wrong will not give much access to the server than the web root and lower.

View solution in original post

5 REPLIES 5

OldWolf
Guru

Hi,

 

Yeah .htaccess is your best bet, but I agree it is rather daunting.  Here are a couple of decent links:

 

http://www.javascriptkit.com/howto/htaccess3.shtml

 

http://www.elated.com/articles/password-protecting-your-pages-with-htaccess/

 

Hope this helps.

 

Dave A

pmillman
Power User

Hi,

You may find it easier to place the files you want protected in their own folder and then use the "Password Protect Directories" application from your control panel.  This application will create the necessary entries in your ".htaccess" and ".htpasswd" files for the protection to work.

 

It will even allow you to make individual usernames with associated passowords to assign individual users if you wish.  This is much easier than writing your own entries with encrypted passwords.

 

Peter

pmillman
Power User

Hello again,

 

After posting my reply I remembered a neat tool I found once and I just found it again.  I think you will find it both very helpful and user friendly.

 

http://www.clockwatchers.com/htaccess_tool.html

 

Peter

resm1401
Member

Thanks for your input.

 

Been a bit hectic over the festive period but will have another bash at putting passwords on my files now.

Krystal
Member

I'm not sure how BT do this - I use cpanel on linux servers and as mentioned .htacess is the way forward - but your better doing this via a cpanel of sorts as the .htaccess file must read a file for the password that file must reside above the web root. I suspect BT and I maybe wrong will not give much access to the server than the web root and lower.