I am looking for a website to host HTML5 games. Since these games have the ability to enable malicious javascript, I would like to know how to set up a safe environment to host them.
It seems that embedding a game with an iframe is the answer, but I'm relatively new to website development, so some questions:
there is an easy way to securely host games in a single domain or ...
should the game be hosted in another domain and then embedded in the iframe so that it cannot interact with the parent document?
If a game is executed while being hosted in another domain, can it interact with this host domain in any malicious way?
source
share