How To Prevent Cryptojacking Script From Running On Your Website

When the demand and usage of cryptocurrency rises, so do cryptominers and the cryptojacking craze.

Some people have said that using scripts to mine cryptocurrencies when people visit websites could be a legitimate form of monetization, providing revenue so websites can live without ads. However, such feat requires websites to let visitors know that they are using the CPU resources of visitors.

But the thing is, it's not quite clear how effective this "legitimate" cryptojacking would work on a long-term basis.