7

Coin-hive.com implements a java-script version of monero cpu miner. Which we can insert on our website to mine monero through the users CPU power. Can Someone provide me leads on how this works on the backend. Does this works on C++ or java-script solely and how can i implement my own version of this?

1
  • Have you looked at emscripten?
    – user1425
    Sep 19, 2017 at 15:18

1 Answer 1

6

The site itself says they've used WebAssembly to compile C code to Javascript. This means you'd need to be competent in C in order to attempt this feat.

If you work through the numbers though, the revenue you'd get from asking your visitors to mine Monero will be tiny compared to the advertising revenue you could get instead. I'd also imagine Google will soon start blacklisting sites that do this.

4
  • why would they blacklist sites ?
    – Sumit
    Sep 19, 2017 at 12:49
  • The same reason that they penalize other types of low quality web sites and ad-heavy sites. See bespoke-digital.co.uk/guides/google-fred
    – knaccc
    Sep 19, 2017 at 19:01
  • I hope they don't blacklist sites I hope this could be a viable alternative to ads however it shouldn't be penalised
    – Joss Bird
    Jan 23, 2018 at 22:06
  • true this is a viable alternative to ads, it should not be penalised, and i am also looking to make a javascript web miner, but i dont know where to start, where shall i start to make my own javascript web miner? Dec 29, 2021 at 10:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.