- Home /
trying to prevent unity web build to run if it is not located at the certain domain
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!
Comment
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Web Player Build Templates 2 Answers
Random start on web build 0 Answers
Simple unity game sharing 1 Answer