How To Stop Websites From Using Your Device For Cryptocurrency Mining

0 24,195

Get real time updates directly on you device, subscribe now.

Bytes: Blockchain technology has come a long way since the release of Bitcoins in 2008. Similar digital currencies have crept into the worldwide market, creating more mining business. While mining isn’t a crime, few websites have made it look like one. Have you experienced sudden rise in CPU/RAM usage by you browser, as soon as you website some website? If the issues sustains for all the websites, there could be a problem with your browser but if it gets trigged only on some sites, it’s probably browser mining. Not just browsers, Mobile Apps are also involved in incorporating cryptocurrency mining code.

The benifits of Cryptocurrency Mining is, no Ads on websites or Apps. The user enjoy a clean interface but provides a small or major share of their CPU usage until the time they stay on the website. Before starting of ways to prevent this, let’s discuss what exactly is Cryptocurrency Mining and how it’s implemented to use your device without your permission.

What is Cryptocurrency Mining?

If you own some cryptocurrency, say Bitcoin and you want to send it to me. I publish my intention and the nodes scan the entire bitcoin network to validate following points:

  1. Do you have the bitcoin that you want to send?
  2. Have you used or sent the same bitcoin in the past?

Once the above points are verified, your transaction gets included in a “block” which gets attached to the previous block – hence the term “blockchain.” Transactions can’t be undone or tampered with, because it would mean re-doing all the blocks that came after. So where is the mining involved in this?

Mining refers to processing cryptocurrency transactions. Miners get rewarded whenever they process a transaction and solve for a new block. The rewards aren’t big, just a fraction of the transaction value. But many transactions happen in a day, a fraction would turn into some dollars. The mining process involves solving mathematical problems. These problems get difficult with time. As the difficulty increases the miner would need fast and reliable technology.

Cyrptocurrency mining does come for a hefty cost. The cost of electricity and hardwares are a bomb. If you could invest atleast $3000-$5000 in up-front hardware costs, at which time you could potentially earn $50 per day or more. What if you get the hardware for free? Yes, that’s where Browser-Based Cryptocurrency Mining comes into the show. This is different compared to the more widely known file-based cryptocurrency mining approach which involves downloading and running a dedicated executable file.

Browser-Based Cryptocurrency Mining

Browser-Based Cryptocurrency Mining is not new; it’s been around since at least 2011. While everyone thought it was dead, in the late 2017 it all started with the launch of a new browser-based mining service in September by Coinhive. This service provides an easy-to-use package for website owners which makes it easy to implement & earning source.

Services like Coinhive, offer a javascript miner which the website or App owners can easily embeed. As soon as a user opens the website of the App, the users run the miner directly in their Browser (device) and mine XMR for you in turn for an ad-free experience. Many creators think it’s a good idea to provide an Ad-Free experience in exchange for some CPU power. But, this has not degraded the overall user experience.

How to prevent Browser Mining in your device

1. Use Coin mining blocker extensions

This is the most common and easiest way to prevent Browser Mining. After the rebirth of browser based mining, many websites like thepiratebay adapted it. While users could spot their increased CPU usage, they also wanted the resources provided on the website. Due to the increase in outrage, developers came out with Browser extensions that would block any mining attempts. You can install any of the extension from below:

2. Anti-Malware Softwares

Most of the browsers have not yet built any resistant to unethical mining. Since the mining is carried out through a simple Javascript being executed from different sources, it’s difficult to stop it. But major Antivirus providers have updated their software to prevent unethical minings performed on the device. Once of such Antivirus is MalwareBytes which provides cryptocurrency miner blocking in its premium subscription.

3. Using a Mining proof browser

It’s just been few months since Browser mining became popular. While most of the browsers remain unaware of the background process, there are few browsers that come with in-built feature to prevent such scripts to execute in background. One of such browser is Brave browser! It’s an open-source project which provide faster browsing experience by disabling tracking scripts that keep on hogging your Internet and CPU.

4. Block Coin Mining via host file

This is a manual way to prevent minings from your device. In this, we’ll block the websites from which the scripts are being exectued. For example, Coinhive scripts are executed from “coin-hive.com” so we’ll block it. This works best if the script source if known to you.

Linux Users:

To find the hosts file in your computer, Open Terminal and enter the below command

sudo nano /etc/hosts

Windows Users:

To find hosts file in Windows, navigate to C:\Windows\System32\drivers\etc you’ll find a file named as “hosts” inside the etc folder. Right click and open it with Notepad++

Blocking hosts:

Add below lines at the end of the hosts file. If you find any other website, you can add it below the list with a prefix 0.0.0.0 which disables your PC to connect with that server.

0.0.0.0 coin-hive.com
0.0.0.0 crypto-loot.com
0.0.0.0 jsecoin.com

4. Adblockers

Adding a domain in Adblocker extensions would prevent any scripts being executed from that particular domain. For this, you need to install an Ad-blocker and find look for Customize > Block an ad by its URL. Then, add the following text in the text box:

https://coin-hive.com/lib/coinhive.min.js
https://crypto-loot.com

5. Disable Javascript

This is the most aggressive way to block Browser Mining attempts. Disabling Javascript not only disables mining, it would disable all Ads, most website like Facebook will be shown as borken as won’t load. This option is surely not recommended until any of the above method doesn’t work.

Malicious cryptocurrency mining isn’t just confined to desktop computers and servers. Always-connected mobile devices are also a growing target. According to Symantec’s report, there’s around 34 percent increase in mobile Apps with mining codes. This metrics are acceptable as Mobile processors have evolved to be  as powerful as low- to mid-range desktop computers.

Considering the current cryptocurrency market where many people are still unaware of different cryptocurrencies, there are chances that such unethical activity would increase by  time. Along with the users, Website owners should watch for injection of the browser-mining scripts into their website source code.

Get real time updates directly on you device, subscribe now.

Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time