HTML5 / Javascript execution inside iFrame is reliable

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?

+5
source share
1

cookie. . ref1 ref2

  • , . (, coolgames.com vs mycoolgames.com). .
  • , /, (, bob.mycoolgames.com, dave.mycoolgames.com). . , cookie .mycoolgames.com, .

, . .

iframes:

, , iframe? ?

iframe, iframed www.mycoolgames.com, - , - , CMS *.coolgames.com

+2

All Articles