Remember when websites could secretly turn your laptop into a crypto mining rig while you scrolled through articles? That audacious era belonged to Coinhive, a once-celebrated service that let site owners monetize traffic by mining Monero directly in the browser. It promised a revolutionary alternative to ads — and quickly became one of the most controversial tools in the crypto space.
What Was Coinhive and How Did It Work?
Coinhive launched in 2017 as a JavaScript-based mining service. Instead of showing visitors banner ads, website operators could embed a small script that would tap into the visitor's CPU to mine Monero (XMR), a privacy-focused cryptocurrency. The idea was elegant: readers didn't have to click anything, advertisers didn't have to chase conversions, and publishers earned passive income.
Technically, the script ran a modified version of the CryptoNight hashing algorithm inside the browser using WebAssembly. It throttled itself to roughly 50–70% of available CPU resources, with the hope that users wouldn't notice the slowdown. The mined XMR was then pooled and split between the website owner and Coinhive, which took a small percentage as a fee.
For a brief moment, Coinhive was hailed as the dawn of a new monetization model — one that didn't rely on tracking, cookies, or intrusive ad networks.
Why Coinhive Became Infamous
The promise soured fast. Almost immediately, cybercriminals began injecting the Coinhive script into compromised websites, browser extensions, and even Wi-Fi captive portals. Users visiting legitimate sites — including government pages and popular news outlets — found their fans spinning at full speed without any consent.
The backlash was swift. Security researchers, browser vendors, and antivirus companies flagged the miner as a potentially unwanted program. The Pirate Bay, one of the most prominent early adopters, faced fierce criticism after running Coinhive without informing users, leading to a public apology and a brief site shutdown.
- Browser-based mining was trivial to abuse since it required no user installation.
- Detection tools were slow to catch hijacked scripts embedded in compromised WordPress sites.
- Legitimate publishers struggled to explain the concept to non-technical audiences already burned by shady ads.
Even when used ethically, the energy cost and the perception of hijacking computing resources made the optics brutal.
The Shutdown and What Replaced It
On February 26, 2019, Coinhive announced it would shut down. The official reason: the collapse of the crypto market and a hard fork of the Monero network that made mining far less profitable. The team said the project was no longer economically viable, and operations would cease on March 8, 2019.
The shutdown was widely seen as a turning point for browser mining. Several compe*****s — including CryptoLoot, JSEcoin, and Webminerpool — also faded in the months that followed. Google and Mozilla moved to throttle or block in-browser miners by default in their browsers, making life harder for legitimate operators.
The Legacy of Browser Mining
Despite its controversial end, Coinhive pushed forward some genuinely interesting ideas. It proved that computational resources could be monetized without ads or tracking, a concept that still influences discussions around Web3 micropayments and decentralized infrastructure.
Today, the spirit of in-browser mining lives on in projects like Fold, Lolli, and various proof-of-attention protocols. These newer attempts usually rely on opt-in models, transparent disclosures, and far lighter resource usage — lessons learned directly from the Coinhive era.
Lessons Learned From the Coinhive Experiment
Coinhive's story is a case study in how a technically sound idea can fail when the human and ethical layers are ignored. Transparency mattered, and Coinhive's permissive deployment model gave bad actors too much room. Users were never given a clear choice, and that breach of trust became the project's undoing.
For developers and publishers today, the takeaway is simple: any technology that uses a visitor's resources must come with clear consent, visible controls, and a real value exchange. Without those, even a clever monetization tool becomes malware in the public eye.
The future of in-browser crypto may belong to opt-in services and lightweight protocols — but the Coinhive chapter will always be remembered as the moment crypto mining escaped the desktop and entered the everyday web.
Key Takeaways
- Coinhive was a JavaScript-based Monero mining service launched in 2017.
- It allowed site owners to earn crypto by using visitors' CPU power — a radical alternative to ads.
- It was widely abused by hackers injecting the script into compromised sites without consent.
- Coinhive officially shut down in March 2019 due to market conditions and network changes.
- Its legacy continues to shape debates around consent, monetization, and Web3 micropayments.
Zyra