disabling right mouse clicks is usually in javascript or DHTML etc. for stuff like image protection.
http://www.dynamicdrive.com/dynamicindex9/noright.htm
<html>
<head>
<title>No Right Click Example</title>
<script LANGUAGE="JavaScript">
function click() {
if (event.button==2) {
alert('No Can Do!');
}
}
document.onmousedown=click
// --> </script>
</head>
<body>
Try right clicking!
</body>
</html>
however I can make any web page on OSX a PDF and get the images anyway no matter what you try, so its kinda pointless.
use a watermark if your super worried on all images.
disabling the view source button in view /view source
cannot be achieved across all browsers or operating systems, as well as sneaking a look at googles cached memory of your site.
you can encrypt your visible source with online encryption pages or write your own obfuscator, but it only makes it a challenge for the hardcore curious.
you can hide with a trick using frames, to the layman they only get the outside frames content and not your real code.
Its best to learn PHP which leaves more sensitive stuff on the server side, all the client sees is the spat out code.
if you wanted to do it for an internal company machine, a registry would solve that.
Start Regedit
Go to HKEY_CURRENT_USER\ Software \ Policies \ Microsoft \ Internet Explorer \ Restrictions
Add a DWORD with a name of:
NoBrowserBars Disable changes to browsers bars.
NoBrowserClose Disable the option of closing Internet Explorer.
NoBrowserContextMenu Disable right-click context menu.
NoBrowserOptions Disable the Tools / Internet Options menu.
NoBrowserSaveAs Disable the ability to Save As
NoFavorites Disable the Favorites.
NoFileNew Disable the File / New
NoFileOpen Disable the File / Open
NoFindFiles Disable the Find Files
NoSelectDownloadDir Disable the option to change download directory
NoTheaterMode Disable the Full Screen view
NoOpeninNewWnd Disable Open in New Window
NoViewSource Disable the ability to view the page source HTML.
NoNavButtons Disables the Forward and Back buttons
NoPrinting Remove Print and Print Preview from the File menu.
AlwaysPromptWhenDownload Always prompt user when downloading files.
Give it a value of 1 to turn on the restriction
Go to HKEY_CURRENT_USER \ Software \ Policies \ Microsoft \ Internet Explorer \ Toolbars \ Restrictions
Create a DWORD with a name of :
NoViewSource Disables adding, removing, or moving toolbars.
Give it a value of 1 to enable this restriction.