Jump to content
MakeWebGames

Viewing codes hack


Feky

Recommended Posts

Re: Viewing codes hack

Please get back on topic, and start a new thread about this if this is necessary.

@OP: You can disabled right clicks, but there are ways around that.

You can encrypt your code (server/client side) but that won't work. Seeing as your browser has to read pure html, css, javascript, ... or anything else in order to display a web page, it needs to be processed back to readable code somewhere. Since that code travels over the net and ends up on the persons computer at some point, it ALWAYS can be retrieved somewhere, even if this encrypted.

Link to comment
Share on other sites

  • 4 weeks later...
  • 2 weeks later...

Re: Viewing codes hack

 

add the javascript no right click script...

 

============================================================
Script:    Basic No-Right-Click Script
Functions: Blocks right-click on mouse and shows alert box
Browsers:  NS & IE 4.0 & later; degrades gracefully
Author:    etLux
============================================================

Put the following script in the head of your page:

<script language="Javascript1.2">

// (C) 2003 CodeLifter.com
// Source: CodeLifter.com
// 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>

============================================================

 

courtesy of http://www.codelifter.com/main/javascript/norightclick1.html

Stopping right clicking is not a good idea for anyone who likes to make notes on users profiles, Meaning name and Ip ect

Link to comment
Share on other sites

Re: Viewing codes hack

 

Stopping right clicking is not a good idea for anyone who likes to make notes on users profiles, Meaning name and Ip ect

Highlight it and press CTRL+C?

And I dont know if you still can but I'm sure you could hold down left click then press right click and it right clicks even if your not allowed?

:) Just saying that its not impossible, if the owner wants to do that then he can, not every player in game will know so you can stop the majoritory of users from right clicking :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...