You are here: Re: How can I password protect this page? « HTML « IT news, forums, messages
Re: How can I password protect this page?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация