This is the official repository of the WP Monero Miner using Coin Hive wordpress plugin.
You can ask questions here: https://github.com/denniske/wp-monero-miner/issues
Official website: http://www.wp-monero-miner.com/
Official Wordpress Plugin: https://wordpress.org/plugins/wp-monero-miner-using-coin-hive/
This plugin enables you to earn money from visitors on your site by using their computing power to mine the cryptocurrency monero.
Main features:
- Miner Widget enabling users on your site to start/stop mining and control mining speed.
- Background Mining with configurable CPU usage for mobile and desktop clients
- Login Form PoW ("Proof of Work") Captchas
- PoW ("Proof of Work") Verification for External links
- Protected Content Shortcode for displaying content only when users have mined a specified amount.
- All controls/widgets can be customized visually to fit your page through Templates
- Prevention of AdBlock / AV.
Just install this plugin and add the widget "Monero Miner using Coin Hive" to your sidebar. This puts a control panel on your site where each visitor can decide to donate his computing power to you.
To see your earnings you need an account at https://coinhive.com. There you also find your public site key (public) which you have to put into the settings page of this plugin.
Official plugin website: http://www.wp-monero-miner.com
Install the plugin and configure it at Settings > WP Monero Miner using Coin Hive.
Then register at https://coinhive.com. You will then find your public site key (public) at https://coinhive.com/settings/sites.
Paste this site key at at Settings > WP Monero Miner using Coin Hive.
To start the miner there multiple options. You can place a control panel on your site by using the widget "Monero Miner using Coin Hive" or by placing the shortcode [wp-monero-miner-control] in some page or article. Or you can run in silent mode.
Add the widget "Monero Miner using Coin Hive" to your sidebar. This puts a control panel on your site where each visitor can decide to donate his computing power to you.
If your theme does not support widgets, you can place <?php echo do_shortcode( '[wp-monero-miner-control]' ); ?>
into the php file of your template.
Place the shortcode [wp-monero-miner-control] in some page or article to show a control panel at that position. You can also edit the php files of your theme and use there to embed the control panel.
Check "silent" checkbox at Settings > WP Monero Miner using Coin Hive. This will start miner when page loaded. No widget needed.
Use the following shortcode to create a protected area that only users with more than a specified amount of tokens can see:
[wp-monero-miner-protected-area tokens=2000000] Secret content. [/wp-monero-miner-protected-area]
Host the scripts from coinhive.com yourself. May prevent blocking by simple adblockers.
Minify scripts and styles of this plugin for better performance.
Check "Enable for login" checkbox at Settings > WP Monero Miner using Coin Hive > Captcha. Then PoW captcha from coin hive is displayed at wordpress login form.
Check "enable" checkbox at Settings > WP Monero Miner using Coin Hive > Links. Then all outgoing links require the user to mine some coins for you before he is redirected to the target page.
Register at https://coinhive.com. Then get your coin hive public site key (public) and secret key from https://coinhive.com/settings/sites.
Activate 'log' at Settings > WP Monero Miner using Coin Hive. Then open your page and the Chrome Console (F12 > Console). You should see the log output there:
Miner 1.2.0 Miner throttle is 0.5. Miner autostart is enabled. Miner cookie is set to 'Mining allowed'. Miner started. Miner running with 50 Hashes/s Miner running with 53 Hashes/s Miner running with 47 Hashes/s
Remember to disable the 'log' setting again for best performance.
Note: If you have multiple tabs with your page open, the miner will only mine in one tab.
If users are logged in on your page and mining they will receive a virtual currency called tokens. A token is a little bit less than a hash. You can use this tokens to give incentive to the user to mine for you.
For example in 'pro' version you can use the following shortcode to create a protected area that only users with more than a specified amount of tokens can see:
[wp-monero-miner-protected-area tokens=2000000] Secret content. [/wp-monero-miner-protected-area]
See your stats at http://www.wp-monero-miner.com/pool.
- Fill in you site key on the settings page.
- The sidebar widget in standby.
- The sidebar widget when mining monero.
- Log output in chrome console (F12 > Console). (When 'log' settings is activated).
- Adapted plugin to wordpress guidelines.
- Improved self hosting. (Prevent Adblock/AV)
- (Pro) Added self hosting of coin hive for https://. (Prevent Adblock/AV)
- Improved settings ui with some helper/warning messages
- Fix: Login Captcha repaired.
- Fix: Redirect link in general.
- Fix: Redirect link templating.
- Pool mining now supports links.
- (Pro) Improved self hosting of coin hive.
- Fix: Throttle control in miner widget was reset every few minutes.
- Fix: Mustache_Autoloader included twice (bug raised by @ui2016)
- Throttle control in miner widget saves chosen throttle in cookie.
- Fix: Server error
- (Pro) Added feature: Templates. (suggested by @marcin11)
- (Standard) Added feature: Throttle control in miner widget. (suggested by @eliot35)
- Added version 'standard'. Please check your version settings at Settings > Standard/Basic/Pro.
- Fix: Styling admin miner correctly
- (Basic) Only require PoW for listed domains. (suggested by @eliot35)
- Change: Scripts will check whether they are not up to date because they are cached and display warning in chrome console (F12).
- Fix: Migrate Throttle/Variant settings properly
- (Pro) Protected area shortcode. (suggested by @abdada)
- (Pro) Host Coin Hive Script.
- (Basic) Minify JS/CSS. (suggested by @leopard-lady)
- Change: Introduced min/basic/pro variants. Default is min which has the same features as before the update.
- Change: Throttle is now defined a percentage of cpu power used. Please check if values have been converted properly after update.
- Fix: Mining in admin area although disabled.
- Fix: Mobile_Detect included twice (bug raised by @dlynch027)
- Fix: Display Hashes/s correctly and fix buttons in widget. (bug raised by @leonvdk)
- Added feature: Throttle depending on device type (mobile or not). (suggested by @soft-focus)
- Added feature: Translations for miner widget and redirect page. (suggested by @baykanbelirdi)
- Added 'Flush Rewrite Rules' button in Settings > Links
- Added usage data form
- Using new coinhive.com domain instead of coin-hive.com
- Fix: Total XMR formatting in Settings > Stats
- Fix: Saving of pool settings
- Added feature: Pool mining with less minimum payout than coin hive. Useful for small pages.
- Added feature: Toplist widget. (suggested by @leisegang)
- Fixed: Again checkboxes in admin settings could not be saved correctly. (bug raised by @soft-focus)
- Added feature: Stats in admin backend (site & user toplist). (suggested by @leisegang)
- Added feature: Require proof of work for outgoing links.
- Fixed: Checkboxes in settings could not be saved correctly. (bug raised by @albirew)
- Added feature: Text in widget can be customized. (suggested by @marcin11)
- Fixed: Minor bugs fixed.
- Fixed: Minor bugs fixed.
- Fixed: Miner should now credit mined hashes to wordpress user again. (bug raised by @leisegang)
- Added feature: Proof of Work captcha can be enabled in login form. (suggested by @albirew)
- Added feature: Shortcodes. (inspired by @simon1977)
- Added feature: Miner can be run in wordpress admin panel. (suggested by @leisegang)
- Added feature: Using current logged in wordpress user for coin hive user list. (suggested by @leisegang)
- Added setting 'log'.
- Added feature: When user starts/stops the miner, his decision is stored in a browser cookie. (suggested by @marcin11)
- Listing miner in coin hive user list as " (wp-monero-miner)"
- Added settings 'autostart' and 'silent'.
- Initial version.
Please check your version settings at Settings > Standard/Basic/Pro.
Please make sure your throttle
settings have been migrated to percentage values properly after update.
Please make sure your throttle
settings have been migrated to percentage values properly after update.
- English (default)
- German
The plugin can be translated with Loco Translate.
Send your translations to [email protected] and they will be included officially in this plugin.