how can i disable right click on my project so no-one can right click and copy or view source, but i know many people know shortcuts, but not everyone does... it would block someone.
Printable View
how can i disable right click on my project so no-one can right click and copy or view source, but i know many people know shortcuts, but not everyone does... it would block someone.
This really won't stop anyone, FYI.
In IE7 it will prompt the user if they want to allow the script to run.
It doesn't work in Fx or Opera.
And as you said, anyone can go View -> Source to view anything they want and they can also print screen and crop out whatever they need.
With that being said, here is a script that will disable it in IE if they allow the script to run.
http://javascript.internet.com/page-...ght-click.html
if they must allow it, then it wouldnt be useful.. well anyways, thanks for your help.
As Kfcsmitty said,
Its impossible to hide your source code.
Most browsers have a "View Source" option built into them.
The only way to hide it successfully, is to encrypt the code. I've never used it, but ZEND (php) encrypts it.