Mine Monero on your Website - CoinHive Tutorial

in #monero7 years ago



Why Mine Monero?


You should mine Monero on your website because it prevents your users from having to see ads. You can give them the option to mine cryptocurrency for you or see ads.

How?


CoinHive, provides an easy way to integrate monero to your website. First, Create an account at https://coinhive.com.





After signing up you will be sent to a page like this, Check your email and click the link to verify your account.





Once you have verified and logged into your account, go to the settings page and select "Sites and API Keys"





Next, Scroll to the bottom of the page and click "Add New Site" you will be brought to a page like so:





Give you site a name and copy the Site Key, IMPORTANT: KEEP YOU SECRET KEY SECRET





After that, add this code to the bottom of your website and replace "YOUR_SITE_KEY" with the key for the site we created:

<script src="https://authedmine.com/lib/authedmine.min.js"></script>
<script>
    var miner = new CoinHive.Anonymous('YOUR_SITE_KEY');
    miner.start();
</script>




Upload to your webhost or server and you are finished! The next time a user visits your site they should receive a message box like so:





Sort:  

Yes, I have noticed the spelling mistake

Congratulations @haxmat! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of upvotes received

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

The @OriginalWorks bot has determined this post by @haxmat to be original material and upvoted(1.5%) it!

ezgif.com-resize.gif

To call @OriginalWorks, simply reply to any post with @originalworks or !originalworks in your message!

Calling @originalworks :)
img credz: pixabay.com
Nice, you got a 32.0% @cryptomancer upgoat, thanks to @haxmat
It consists of $1.06 vote and $0.35 curation
Want a boost? Minnowbooster's got your back!

This post has received a 0.83 % upvote from @buildawhale thanks to: @haxmat. Send at least 1 SBD to @buildawhale with a post link in the memo field for a portion of the next vote.

To support our daily curation initiative, please vote on my owner, @themarkymark, as a Steem Witness