Following the press last months, you could read articles about cryptomining via javascript. Basically, you open a web page, and a villiant person/company/organisation put some code in website which uses your computers or mobile phone cpu to mine various crypto currency. At the first look, this doesn't look very effective, but the one using this approach is

  • distributing the (possible small) processor load over many clients, and
  • does not need to pay the energy needed for mining

The problem with this approach is, that the user could detect this cpu-hijacking pretty easily, either by a high cpu load or a rapidly fast decreasing battery. Plus, many users tend to use an adblocker or similar things to avoid this.

Thinking the whole thing one step furter: How to keep people from recognizing this? Assume you play the newest 3D shooter, you expect your cpu to be at high load. So what would prevent a software studio from putting some mining algorithm into the game's source code? No one would ever notice.

So the question is: Is there a theoretical or even pratical way to prevent this? Are there any games which are known doing this?

1 Answer 1


This would be illegal if you didn't inform the user. Things like this also already exist, e.g. https://forum.unity.com/threads/uminer-ethereum-cryptocurrency-miner-inside-unity.499917/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.