steps to upload a game

  • 1
  • Question
  • Updated 8 years ago
  • Answered
what are the steps to upload and play a game to a website without allowing a visitor to download the same game.
Photo of Michael

Michael

  • 2 Posts
  • 0 Reply Likes

Posted 8 years ago

  • 1
Photo of Parthiv

Parthiv

  • 126 Posts
  • 10 Reply Likes
Hi,

That's extremely hard to do, because when you display a file (such as a game), you are giving the browser/viewer the link to the file.

The good news is that there are certain 'encryptors' that make it hard for a human to read the code but allow the browser to read it.

Maybe if you give the code, or at least the file type? (Such as flash: ends with '.swf'.)

Thanks,
Parthiv
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Hello Michael

One possible way but not sure if this would work is to add a right-click disable javascript code to your site.

<script language=JavaScript>
<!--
var message="No Right Clicking aloud!";
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if
(document.layers||document.getElementById&&!document.all){
if
(e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
// -->
</script>

As I said, I cannot guarantee that this will work but it may be worth a try.
Photo of Parthiv

Parthiv

  • 126 Posts
  • 10 Reply Likes
Hi,

Here's another no right-click script, except that when you right click a message won't appear, and nothing will happen.

- Parthiv
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Thanks for sharing Parthiv!
Photo of Michael

Michael

  • 2 Posts
  • 0 Reply Likes
Hi Sanja,
Thanks for that reply. It makes more sense. I will try it out and let you know if it works or not.Take care and have a nice day.
Regads
Michael.