DIGIT-ARC read-only archive · snapshot: July 23, 2026

How to protect a page on my website using Password?

6 posts · originally from https://geek.digit.in/community/threads/how-to-protect-a-page-on-my-website-using-password.32080/

aditya.shevade
aditya.shevade Original post #1
Jul 16, 2006 at 6:42 PM
Hi

I am creating a website and I want to know how will I be able to protect a page by giving a password, so that only those who know the password will be able to read it. Can anyone tell me how to do that?

Aditya
planetcall
Jul 16, 2006 at 8:40 PM
the best answer would be to get a good book of the technology you like to work with. For your question a basic javascript is good enough but that is not something practical. Get ASP.NET, JSP, PHP etc. Buy a good book :)
I hope it helps
blueshift
Jul 16, 2006 at 10:38 PM
These links will help you.

Article:
*personalweb.about.com/cs/securityprivacy/a/312password.htm

Software:
*www.htmlpassword.com/

JS Codes:
*javascript.internet.com/passwords/
RCuber
RCuber #4
Jul 17, 2006 at 3:29 AM
@aditya.shevade what technology are you using? ASP.NET ,PHP or others? .. You can use javascripts, but then your scripts can easily been seen in the source.
kalpik
kalpik #5
Jul 17, 2006 at 7:29 AM
Or you can also use .htaccess files. I really dunno how they work, so cant guide you there. But a quick google should get you started. IMHO, its easiest of all the methods.
it_waaznt_me
Jul 17, 2006 at 5:26 PM
Yeah .. You should put access restriction on the folder with .htaccess (This works on Unix / Linux servers) ..
Check this