Search Unity

Question regarding the webplayer

Discussion in 'Editor & General Support' started by Discord, Apr 13, 2009.

  1. Discord

    Discord

    Joined:
    Mar 19, 2009
    Posts:
    1,008
    I had a question regarding the webplayer.

    If I put a game up on www.mygame.com/game.html, what can you do to stop someone from going to www.mygame.com/game.unity3d, downloading the .unity3d file, and then copying the html page source and hosting your game on their own site?

    Is there some sort of security measure you can implement to restrict the downloading of the .unity3d file?

    I'm sure there is, and if anyone can just give me a yes/no answer and point me in a general direction, it would be very appreciated.

    I'm a newb when it comes to servers and webpages as you can tell. :oops:
     
  2. cyb3rmaniak

    cyb3rmaniak

    Joined:
    Dec 10, 2007
    Posts:
    162
    You can use Application.absoluteURL.
    There's an example inside the link that demonstrates exactly what you need :)
     
  3. Discord

    Discord

    Joined:
    Mar 19, 2009
    Posts:
    1,008
    Thank you! That was exactly what I was looking for.