coolsolution
New Member
Hi every one. Can anyone tell me how to hide the Source code of my webpages.
Any help will be appreciated.
regards.
Any help will be appreciated.
regards.
Compufusion said:i would recommend disabling right clicking. This might not work on some computers which have a right click button on the keyboard i'm not sure.
JS encoders seem fine, depends on the nature of your content and how likely people are to try and hack it.
Robin
Yes, but it NEVER works in Firefox. Also, You can just go to View > Source from IE's menus at the top.
<script language=JavaScript>
<!--
//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com
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;}
document.oncontextmenu=new Function("return false")
// -->
</script>
Darthvadersmaster said:Actually, this code has always disabled right clicking in Firefox for me.
HTML:<script language=JavaScript> <!-- //Disable right click script III- By Renigade (renigade@mediaone.net) //For full source code, visit http://www.dynamicdrive.com 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;} document.oncontextmenu=new Function("return false") // --> </script>
<frameset cols=2, rows=1>
<!-- Insert Frame 1 Here -->
<!-- Insert Frame 2 Here -->
</frameset>
Err... there's no deleted posts in this thread.Tree said:I wondered why people were restating my post. It's been deleted because in it, I "flamed" iyeru.
Well I guess it was lost in the DB crash.Bruce said:Err... there's no deleted posts in this thread.
As far as hiding source code, I'm not sure why you'd want to. It seems kind of silly.
The easiest solution would be to use javascript and just encrypt it. Something like HTML Guardian would work for you.