Amiguinhos,
em cada .HTML ou .PHP que tenha tags para formar o
body coloquem ostrechos como demonstrado:
...
</head>
<body>
<script language=JavaScript>
var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
</script>
<script language=JavaScript>
function disableselect(e) { return false }
function reEnable() { return true }
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar) { document.onmousedown=disableselect;document.onclick=reEnable }
</script>
<script type='text/javascript'>window.document.oncontextmenu=function(){return false;}</script>
...
Em páginas puramente .PHP, não será possÃvel visualizar o código fonte em .PHP pois ele é processado no servidor. Agora se houver uma falha na servidor é possÃvel que o código puro possa ser mostrado no browse como quando se abre um .TXT diretamente pelo browser.
Para colocar a proteção acima em páginas que tenham .PHP com saida .HTML basta desligar o .PHP e ligá-lo depois:
...
// Desligando o PHP
?>
</head>
<body>
<script language=JavaScript>
var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
</script>
<script language=JavaScript>
function disableselect(e) { return false }
function reEnable() { return true }
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar) { document.onmousedown=disableselect;document.onclick=reEnable }
</script>
<script type='text/javascript'>window.document.oncontextmenu=function(){return false;}</script>
<?PHP
// Religando o PHP
...