As a result he is getting several million hits a day on his library's js file, directly from these website's pages.
We've been tempted to include a JavaScript miner in the library he is hosting, but we're unsure of the legal implications, i.e. would the fact that he's hosting the file on his website and that the other websites have simply hotlinked it, be a valid defense?
I wanted to see if I could replace the ads with a bitcoins miner and get enough revenues to continue operating the service. FYI I was making about 900€ per month at the moment.
So I installed a JavaScript miner, removed the ads and waited. The result I got was unexpected: Avast Antivirus (very popular among my visitors) flagged the site and blocked it's access. I immediatly lost about hald of the traffic. I tried with a few other opensource miners and the sentence was the same every times: users locked out by zealous anti-virus and traffic cut off by (at least) half.
When I did the experiment I thought it was a good deal for users.
Please, see my comment above.
What if this was legal? It could be an alternative way to pay for website costs. We get rid of ads and replace it with a client side miner.
Six years ago:
https://news.ycombinator.com/item?id=2566365
Additionally, does this automatically hook in to slush's pool or something? Bitcoin mining is practically useless on CPU; even the fastest CPUs out get way, way less than 10mhash. The average length of time to find a block at 9999khash and current difficulty is 1200+ days, so even that estimate is over-optimistic, so this isn't worth anything if your users don't sit on your site for 5 years+, unless it's hooked into a pool or some other contraption to pay on shares instead of blocks.
It hasn't gotten better.
Monero is different. To mine Monero, you have to calculate hashes with an algorithm called Cryptonight. This algorithm is very compute heavy and – while overall pretty slow – was designed to run well on consumer CPUs.
There are solutions to run the Cryptonight algorithm on a GPU instead, but the benefit is about 2x, not 10000x like for other algorithms used by Bitcoin or Ethereum. This makes Cryptonight a nice target for JavaScript and the Browser.
Our miner uses WebAssembly and runs with about 65% of the performance of a native Miner.
to block all third party connections unless required. It will stop the coin-hive mining script.
https://coin-hive.com/account/signup
https://coin-hive.com/info/captcha-help
I'm not super familiar with the inner workings of the world of spam protection, but I'm curious if people think increasing the cost of spamming through extra workload for the machine as opposed to the human in this manner would be helpful to deter spammers in general? Seems like the lack of a human intervention requirement means that the spamming workflow can still be automated, but maybe the extra workload could cut into profits/throughput enough to make the site an unattractive target?
The other aspect of a solution like this where you can potentially recoup part of the damage done by spamming through their contribution to your mining operation, so you say hire a human moderator, is super interesting as well.
1. The service provider (Coinhive) used not just BTC but all kinds of cryptocurrency
2. they make sure they switch over to the most lucrative cryptocurrency at the moment in realtime
3. makes sure the user (In this case thepiratebay) can cash out immediately, as in every day.
In this case, mining as a business model may make sense. I think it's impressive that they built something like this to begin with.
Unless the person has a decent GPU and the currency supports that, it's still worthless, but it's a lot of trouble (and disrespectful to unaware users). But you're talking about a business plan that relies on new, worthless, speculative currencies to come and go for the next decade. Does anyone benefit from that? Does that sound stable?
Of course if you were actually to do something like this, it will require a lot of thought, and I personally won't touch anything like this because I don't believe in junk currencies and would rather spend my time working on something meaningful.
But I think the idea itself is interesting and worth thinking about instead of just discounting it as "not efficient".
That's exactly what it was made for. But the creators had the foresight to adjust the difficulty factor automatically as the hashrate - inevitably - would increase and this means that even though the speed with which GPU, FPGA and later ASIC based mining probably wasn't foreseen it still managed to remain relevant.
Sure with GPUs this might change but JS is not ideal for this at the moment.
They are connect to some sort of centralised server or perhaps just scrap the DHT themselves. For such operators, having alternative source of income is quite awesome. The problem is that they do not interact long with website, someone like Facebook would be much more useful.
That is not to say the example is incorrect. Rather the difficulty in Monero has doubled in last month alone. In that case those 2k users needed to run this miner for 12 hours.
Tthe average increase in the difficulty on Monero is also surprising. Chart here: https://www.coinwarz.com/difficulty-charts/monero-difficulty...
It seems the spike in last month has been huge. All thanks to this miner?
Why is computer memory getting more expensive? DDR4 is now almost twice more expensive compared to 2016...