There are many ways to run a WebAssembly module, besides Web, Node.js can load wasm module with --experimental-wasm-modules
, standalone runtime like wasmtime and lucet can run it too.
So how do I detect the current environment in WASM and is it possible to apply a restriction on wasm modules that make it can only work on a specific website?