Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Protect against someone hosting your game without permission

Discussion in 'Editor & General Support' started by joihelgi, Dec 17, 2014.

  1. joihelgi

    joihelgi

    Joined:
    Jan 21, 2014
    Posts:
    19
    Hi,
    I am currently developing for web player and I want to control where the game is hosted and what website it is played from, I was wondering how it is best to protect against someone downloading the ".unity3d" file and host the game on his side, at least to be able to track where the game was loaded or from which page it is played.
     
  2. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    You probebly like to take a look at this : Application.absoluteURL
    http://docs.unity3d.com/ScriptReference/Application-absoluteURL.html
     
  3. joihelgi

    joihelgi

    Joined:
    Jan 21, 2014
    Posts:
    19
    Thanks ! this will work :)
     
  4. joihelgi

    joihelgi

    Joined:
    Jan 21, 2014
    Posts:
    19
    One thing, dose this also work on Facebook canvas ?
     
  5. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    Im not sure how Facbook handles the integration of the unity webplayer.
    You can test upload a webplayer and see what Application.absoluteURL gives you back.
     
  6. levan1

    levan1

    Joined:
    Nov 16, 2013
    Posts:
    14
  7. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    I don't know fgl.com but this counts in general:
    Can you upload a test version of your game?
    That way you could analyse how the address is build up and build a test for the full URL or a part of it if the URL is dynamicly changing.