You can do this by using the game embed tool: https://itch.io/updates/introducing-game-embeds
Viewing post in Sitelock Update
I don't understand: when a privacy-enhanced user checks a game's page (e.g. because they found it via itch.io search), they just get the sitelock warning indefinitely and confusingly. Are you saying gamedevs need to ensure users play the game from outside itch.io via an embed?
Just let us decide whether to enable it.
I think you’re talking about two separate things,
when a privacy-enhanced user checks a game’s page
If someone is seeing the sitelock on the itch.io page that’s a bug on our end. We’re looking into fixing it
Are you saying gamedevs need to ensure users play the game from outside itch.io via an embed
If someone wants to host their html5 game on another site, then they need to use the itch.io embed. We will no longer allow people to use our direct CDN links. It was abused too much. This is in line with how we do downloadable games as well: we don’t provide direct links to files, you must go through itch.io to download. This is important to help keep the platform alive by letting people discover itch.io. I hope you understand, thanks
(There are other advantages to using the itch.io embed code as well: we can make features like analytics and in-game APIs work seamlessly)