Possible Duplicates:
How to disable (View Source) and (Ctrl + C ) from my site
How to disable or encrypt “View Source” for my site
Is there a way to hide source code from all browsers, disabling the right click and removing the view source option in Mac and PC?
You can disable viewing source code by posting nothing but an empty page. Well, theoretically the user will still be able to select “view source” but there won’t be anything to view.
This requirement is mutually exclusive with disabling right click, however; if you add the JavaScript to disable right clicking then the user can gain access to the source code for the click-disabler! As it won’t be effective on all browsers anyhow, I suggest just posting the empty page to keep your sources completely safe.