- 15/11/2017 --- v1.0 -- Initial publication
As cryptocurrency mining is extremely resource-consuming, it may impact the performance of the visitors' browser and operating system , as well as waste electricity on behalf of the owners of the infrastructure.
Then loading the Coinhive user key and starting mining:
var miner = new CoinHive.Anonymous('YOUR_SITE_KEY');
A more complex code is available for users willing to fine-tune the way visitors are mining.
In this version of Coinhive library, no permission is asked to the visitors. Coinhive also proposes another version requiring an explicit opt-in from the end-user.^[
https://authedmine.com/lib/authedmine.min.js] We may assume that this option will not be the one exploited by malicious actors.
In both cases, blocking access to the domain hosting the library will prevent the mining from starting. Although Coinhive is the most popular provider at the moment, others exist. A list of other known mining domains is also available in . While most of them currently do not provide infrastructure for browser-based mining, many already do. Others allow for mining with dedicated miners and may provide browser-based mining capabilities in the future.
Most ad-blocker plugins for browsers, as well as some of the anti-virus products, are blocking known browser-based mining services.
For large-scale network, it is recommended to block known mining domains , unless the users are explicitly allowed to participate in cryptocurrency mining.