Lock the contents in my webpage



Hi guys,

I am wondering how can i lock the contents of my webpage like what this webpage did ?


In this site, i can't even right click and view their HTML source.. How did they do that ? It is like all the contents are protected.

Can I use php code to do the same thing or I only can do it by using javascript ? or i need to purchase something in order to do that ?

Please advise.
You can't. There's no practical way to hide or lock or secure your HTML source. The page you pointed to uses a JavaScript trick, which is trivial to circumvent, and their particular version doesn't even work in Firebird (the browser I use by default). Did you try going to View > Source? You'll see that their source is far from protected.