jQuery password protection? |
This is a discussion on jQuery password protection? within the Javascript forums, part of the Development category; I am trying to develop a site for a friend that contains some password-driven content that will be added to ... |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 |
| Member Join Date: Jan 2009
Posts: 67
Thanks: 1
Thanked 0 Times in 0 Posts
![]() |
I am trying to develop a site for a friend that contains some password-driven content that will be added to over time. What is the easiest way to handle this? I am not building a cms and the site will not be database-driven. Is there a jQuery plugin or something similar to get the functionality? |
| | |
| | #2 |
| Member Join Date: Jul 2009
Posts: 91
Thanks: 0
Thanked 7 Times in 7 Posts
![]() Expertise: (X)HTML / CSS Experience: Quite Good |
Javascript is good for many things, but not security. As javascript is downloaded and executed on the client's computer, they can look inside your JS and simply read your password. If you've obfuscated it, they can still attempt to reverse-engineer the password. For simple password protection of pages, use .htaccess basic authentication instead. |
| | |
| | #3 |
| Member Join Date: Jan 2009
Posts: 67
Thanks: 1
Thanked 0 Times in 0 Posts
![]() |
The problem with using .htaccess is that we need to add several passwords for different people to access different pages over time. Is this a realistic option? BTW The pages secured are of fairly low priority hence the 'quick and dirty' approach. |
| | |
| | #4 | |
| Member Join Date: Jul 2009
Posts: 91
Thanks: 0
Thanked 7 Times in 7 Posts
![]() Expertise: (X)HTML / CSS Experience: Quite Good | Quote:
I don't see any advantage of javascript here, except maybe that you're more familiar with it. | |
| | |
| | #5 |
![]() Join Date: Jan 2009 Location: Or-Yehuda, Israel
Posts: 397
Thanks: 0
Thanked 16 Times in 16 Posts
![]() ![]() ![]() Expertise: (X)HTML / CSS Experience: Quite Good |
Why not use simple password protected directories?
|
| | |
| | #6 |
| Member Join Date: Jan 2009
Posts: 67
Thanks: 1
Thanked 0 Times in 0 Posts
![]() |
So a page needs to go in a separate directory each time?
|
| | |
| | #7 |
![]() Join Date: Jan 2009 Location: Or-Yehuda, Israel
Posts: 397
Thanks: 0
Thanked 16 Times in 16 Posts
![]() ![]() ![]() Expertise: (X)HTML / CSS Experience: Quite Good |
Yes, or a group of pages. It seems a far better solution if you just want simple password protection. Try it - it's simple enough. |
| | |
| | #8 |
| Member Join Date: Jan 2009
Posts: 67
Thanks: 1
Thanked 0 Times in 0 Posts
![]() |
Excuse my ignorance as I am more a designer than a programmer... But what is the specific coding to allow this. And can I create an .ht access file if the webhost hasn't supplied one? |
| | |
| | #9 |
![]() Join Date: Dec 2008 Location: Kent Uk
Posts: 1,461
Blog Entries: 5 Thanks: 13
Thanked 43 Times in 43 Posts
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Expertise: (X)HTML / CSS Experience: Professional |
this should help you http://www.quickonlinetips.com/archi...with-htaccess/ |
| | |
| | #10 |
| Member Join Date: Jan 2009
Posts: 67
Thanks: 1
Thanked 0 Times in 0 Posts
![]() |
Thanks for all your help. I also found a password generator on Dynamic Drive. |
| | |
![]() |
| Tags |
| jquery, password, protection |
| Thread Tools | |
| Display Modes | |