Hello, I am making a web game with godot and want to implement some anti-piracy features. I am trying to copy what is laid out here - https://github.com/nyunesu/web-games (scroll down to the piracy section). All I need to do is find the url that the game is beng hosted on and compare it to a list of allowed hosts - with an exception for if it is being tested in the editor. Is this possible with godot? Where should I start?
Thanks in advance.
Verifying a HTML exported game's host
ProbablyIdiot gdscript or mono?
I would start looking at this:
https://docs.godotengine.org/en/stable/tutorials/platform/web/javascript_bridge.html#doc-web-javascript-bridge
Get access to DOM and try to get page url then validate it against your host url as per the repo you linked earlier which was written in C#.
kuligs2 I'm using GDscript, the link was just an example for unity.
19 days later
kuligs2 I'm not understanding the docs, could you help me with some basic code as a starting block please?