A Look Back at Coinhive: An Idea Too Good to Be True
published:
A few years ago, I wrote an article about a service called Coinhive, framing it as a revolutionary way to monetize websites without resorting to annoying advertisements. You can read my original, optimistic take on it here. At the time, the idea seemed brilliant: use a small fraction of a visitor's CPU power to mine cryptocurrency, creating a passive income stream for creators while maintaining a clean, ad-free user experience.
I genuinely believed it would be used by legitimate individuals looking for a fair alternative to the often-intrusive ad industry. In concept, it was a fantastic idea.
The Promise: A Win-Win for Creators and Users
The concept was simple. A webmaster could embed a JavaScript miner on their site. Visitors would, in the background, contribute a tiny amount of their processing power to mine Monero. The site owner would earn a small amount from each visitor, and in return, the visitor would enjoy an ad-free experience. The miner even had throttling options, so a responsible webmaster could ensure it had minimal impact on the user's machine. It felt like a perfect, symbiotic relationship.
The Reality: A Dream Corrupted
As it turned out, the concept was too good to be true. The flaw wasn't in the technology itself, but in human nature. While many of us saw a tool for legitimate, ethical monetization, bad actors saw an opportunity for exploitation.
Instead of using the recommended 10-20% of a single CPU core, malicious sites and scripts would crank the miner up to 100% across all available cores. This practice, often called "cryptojacking," was implemented without user consent on hacked websites, in malicious browser extensions, and by unscrupulous site owners. Visitors suddenly found their computers slowing to a crawl, fans spinning at full blast, and their power bills increasing. The user's time and money were being stolen.
The Inevitable Downfall
The widespread abuse of Coinhive led to its downfall. Antivirus software and ad-blockers started flagging and blocking the miner script by default. Browsers began implementing protections against this kind of in-browser mining. The negative reputation became so overwhelming that any site using Coinhive, even legitimately, was viewed with suspicion.
This, combined with a major crash in Monero's value, made the service financially unviable. In March 2019, Coinhive announced it was shutting down. The dream of a simple, ad-free monetization solution was over.
Final Thoughts: A Sobering Lesson
The Coinhive saga was a sobering lesson. It demonstrated how even a well-intentioned idea can be twisted and ultimately destroyed by those with nefarious intent. It highlighted the constant cat-and-mouse game between technological innovation and abuse.
While the idea of leveraging distributed, idle computing power for a common good remains intriguing, Coinhive's failure proves that without robust safeguards and a way to enforce ethical use, such systems are incredibly vulnerable. In the end, it was a great idea on paper, but in the wild, it was simply too good to be true.