Friday, May 21, 2010

How to lock html source code for my website?

I am building a website and password is necessary. I notice that I can simply create password section. However, the password will be easily seen because everyone can find it from the source code. Anyone knows how to lock the html so that no one can see it?

How to lock html source code for my website?
Since HTML is actually decoded on the local browser, there is no way to block the viewing of this. Web pages are downloaded from the server and onto the computer that is viewing them. Once on the computer, it simply becomes another file.





One thing I would suggest is learning a server-side programming language, such as PHP or ASP. The code of these pages is processed by the web server and the result of the code is sent via HTML to the viewing computer.





So, if you had a PHP file which basically followed the following logic (note this is not actual PHP code):





'If password entered = "password" then display picture.jpg'





All the user on the site would see would be the HTML code to display the picture.

birthday cards

No comments:

Post a Comment