here is the code i have:
Application.ExternalEval(“if(document.location.host != ‘google.com’) { document.location=‘http://unity.com’; }”);
so this basically means that if web player is not located at google.com domain
then it should open unity.com website…
that is not what is going on when i upload it on my site. i am using default html
that is made when building web player. does it need to be changed somehow.
what is your experience with this? thank you!
unity answers cross post: http://answers.unity3d.com/questions/57032/trying-to-prevent-unity-web-build-to-run-if-it-is-not-located-at-the-certain-doma