emscripten icon indicating copy to clipboard operation
emscripten copied to clipboard

Should I worry about copying the compiled WASM by someone?

Open AI-Durandal opened this issue 10 months ago • 1 comments

Is it possible of anyone to copy the compiled WASM from my published web site with a compiled WASM feature, and use it on his/her web site? I worry about the piracy of copyright of my WASM files. Should I take any kind of counter-measures in order to prevent the piracy? Thank you in advance.

AI-Durandal avatar Apr 23 '25 00:04 AI-Durandal

On the web there is no way to prevent folks from copying your assets since they are all downloaded over the public internet. The wasm binaries in this case are no different to your existing CSS, JavaScript or image assets.

In other words, no there is no way to prevent someone from gaining access to the wasm file. The wasm runs on the client so the client necessarily needs access to it.

If you are asking about reverse engineering the contents of the wasm, that is different question, but its also hard to prevent.

sbc100 avatar Apr 23 '25 18:04 sbc100