Crypto Miner Blocker
Why block Web Crypto Miners?
Recently ThePirateBay.org and Showtime.com were caught experimenting with CoinHive, a crypto miner for websites. While this looks like a promising solution to the dying ads market, the implementation of webmasters is simply full out wrong as CoinHive itself has concluded:
We're a bit saddened to see that some of our customers integrate Coinhive into their pages without disclosing to their users what's going on, let alone asking for their permission. We believe there's so much more potential for our solution, but we have to be respectful to our end users. [...]
A webmaster following the instructions of CoinHive's documentation will by default end up consuming up to 70% of every visitor's CPU until they close the website. While this might not be a problem for desktops engergy-wise, it will drain the battery of laptops and smartphones. And we haven't even talked about the CPU usage slowing the machine down, fan noise, heat and a shorter hardware life.
Until a proper fix is released by CoinHive - for example requiring every visitor's consent before starting mining - I recommend manually adding a few block rules to your favorite ad blocker or installing this extension.
Contributors can easily set up a work environment as follows:
- Clone the repository
git clone https://github.com/lesander/crypto-miner-blocker.git
- Open Google Chrome and navigate to
- Enable Developer Mode by clicking the checkbox in the top right corner.
- Click the 'Load unpacked extension' button and select the directory you just cloned.
- Enable the extension and start contributing!
Code and documentation copyright 2017 Sander Laarhoven. Code released under the MIT License.