Welcome visitor
* Login
* Register
It is currently September 16th, 2019, 12:16 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 4 posts ] 
Author Message
  secure my source code
PostPosted: March 10th, 2009, 9:30 pm 
User avatar

Posts: 52
Hi
is it possible to hide the source code of my site from my visitors?
just wondering...


Top
 Profile  
 
  Re: secure my source code
PostPosted: March 10th, 2009, 9:31 pm 
User avatar

Posts: 79
No.

sorry, i didnt consider your question in all its depth. Yes, there is an infallible way you can do it, DONT UPLOAD IT! :D

hth


Top
 Profile  
 
  Re: secure my source code
PostPosted: March 10th, 2009, 9:39 pm 
User avatar

Posts: 29
Here is some code to prevent right-clicking, but not to hide the code...sorry!

<script language="Javascript">
// Do not remove this header
// Set the message for the alert box
am = "This function is disabled!";
// do not edit below this line
// ===========================
bV = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"
function nrc(e) {
if (bNS && e.which > 1){
alert(am)
return false
} else if (bIE && (event.button >1)) {
alert(am)
return false;
}
}
document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;
</script>

_________________
Ooh, I love your magazine. Especially the 'Enrich Your Wordpower' section. I think it's really...really... really...good.
- Homer Simpson


Top
 Profile  
 
  Re: secure my source code
PostPosted: March 10th, 2009, 9:40 pm 

Posts: 65
Try to understand the 'how' of the browsers and you'll find the 'why' of the answer.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron