Posted by Kim Andrι Akerψ on 11/01/05 10:38
Narlen wrote:
> Hi there
>
> I would like to password protect (or "directory listing denied") my
> website. I am using the following code. The problem is that if
> people choose "view page source" in any web browser it shows the
> password. Can anyone give me a code that would hide the password?
> Thanks a lot for your help.
>
> Here is the code:
>
> [snip JavaScript code]
JavaScript is at best flaky, and fairly easy to bypass.
I don't know what web server software your website runs on, but here's
a quick tutorial on how to password protect directories in Apache:
http://www.javascriptkit.com/howto/htaccess3.shtml
(Don't be fooled by the domain name, this particular tutorial doesn't
include any JavaScript code.)
--
Kim AndrΓ© AkerΓΈ
- kimandre@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
Navigation:
[Reply to this message]
|