• Home
  • Become a Hacker
    • Get Started
    • Hacker Mindset
    • Roadmap
    • Simple Setup – Hacker 101
    • Types of Hackers
    • Recommended Courses
  • Boot People Offline
  • Courses
    • All Hacking Courses
    • Cyber Security School
  • CTF
    • Beginners to Advanced Guide
    • Create your own CTF box
    • Field and Resources Guide
    • Platforms & Wargames
    • Tools Used for Solving CTF
    • Writeups
  • Dark Web
    • Beginners Guide
    • Darknet Markets
    • Darkweb 101 (Anonymity Guide)
    • Dark Web OSINT Tools
    • Hacking Forums
    • Latest News
    • Onion Links
  • Hacker Gadgets
  • Hacking Books
  • Tools Directory
Menu
  • Home
  • Become a Hacker
    • Get Started
    • Hacker Mindset
    • Roadmap
    • Simple Setup – Hacker 101
    • Types of Hackers
    • Recommended Courses
  • Boot People Offline
  • Courses
    • All Hacking Courses
    • Cyber Security School
  • CTF
    • Beginners to Advanced Guide
    • Create your own CTF box
    • Field and Resources Guide
    • Platforms & Wargames
    • Tools Used for Solving CTF
    • Writeups
  • Dark Web
    • Beginners Guide
    • Darknet Markets
    • Darkweb 101 (Anonymity Guide)
    • Dark Web OSINT Tools
    • Hacking Forums
    • Latest News
    • Onion Links
  • Hacker Gadgets
  • Hacking Books
  • Tools Directory
Search
Close
  • Home
  • 2017
  • September
  • 26
  • 5 Easy Ways To Block Cryptocurrency Mining In Your Web Browser

5 Easy Ways To Block Cryptocurrency Mining In Your Web Browser

September 26, 2017September 26, 2017 Comments Off on 5 Easy Ways To Block Cryptocurrency Mining In Your Web Browser
5 Easy Ways To Block Cryptocurrency Mining In Your Web Browser block browser mining how to block coin hive how to use coin hive

As crypto-mining has gained popularity, the website owners are now using cryptocurrency mining scripts to use the CPU power of the visitors for earning profits. This has also inspired some developers to come up with methods to block cryptocurrency mining in the web browser via different methods.

The Pirate Bay, the world’s most popular torrent website, was recently spotted testing a Monero cryptocurrency miner on their websites. The website confessed that it could be using coin mining in future to keep the website running. This was followed by some other reports of similar nature.

This practice isn’t new, but the Pirate Bay was the first popular website that was seen using a cryptocurrency miner. This has also fueled the ethics debate as the website owners are found to be keeping the visitors in the dark.

However, I was surprised to notice that many users who commented on the article and Facebook didn’t mind their favorite website using their CPU power to earn revenue. This could be due to the fact that torrent websites are home to tons of notorious advertising. Before going ahead and telling you how to block cryptocurrency mining in web browser, let me tell you how to find out if you’re already becoming a target of such mining activities —

How to find out if my PC is secretly mining cryptocurrency?

Apart from ransomware, bitcoin mining malware are rising in popularity at an exponential rate. In case the culprit is some website which is using your web browser to mine crypto coins, you can find that out easily.

block mining script

The Pirate Bay users spotted the miner due to a huge spike in CPU usage when they visited the website. You can also use the same technique to see if a particular website is sweating your processor and earning money. In case most of the browser tabs are closed, and no applications are running, there are chances that you are becoming a target of such mining campaign. If you aren’t much tech-savvy, you can perform hit and trial with the suspected websites and see which one of them is spiking the CPU usage. The tech-savvy users can perform this task much efficiently with the help of resource monitoring tools.

How to block cryptocurrency mining in web browser?

Most of the websites that are making TPB-like headlines are using a new service called Coin Hive for mining. There are few simple ways to block such activities:

1. Use No Coin Chrome Extension

Installing Chrome extensions is the most straightforward method to stop coin mining in the web browser. No Coin is one such free solution. This open-source extension is a reliable and safe way to control how a website is interacting with your web browser.

no coin extension

As soon as you visit a website, No Coin will detect and show if any such activity is going on. You’ll see a red symbol as shown in the screenshot below. While this extension blocks any such activity, it also allows you to whitelist a website for a period of time.

2. Use minerBlock Chrome extension

Just like No Coin, minerBlock Chrome extension is another open-source tool that you can use to block cryptocurrency mining in the web browser. These extensions currently list a few popular miner domains to their list, and they are expected to add more once they get popularity.

Here’s how minerBlock notification looked like when I visited Coin Hive’s website:

minerblock extension

3. Block coin mining domains in hosts file

This is the manual way of blocking particular domains that you don’t find harmful or irritating. Due to such blocking, your browser won’t be able to connect to these domains. We can edit the hosts file and redirect it to 0.0.0.0.

host file editing to block mining script

In Linux, you need to open the hosts file by running following command and add 0.0.0.0 coin-hive.com to the end of the document:

1
sudo nano /etc/hosts

In Linux, run the following command:

1
sudo nano /private/etc/hosts

For Windows, navigate to C:\Windows\System32\drivers\etc and edit the hosts document to add 0.0.0.0 coin-hive.com at the end.

Please note that this change blocks the mining scripts which are hosted by coin-hive.com. In case you come across other mining script domains, you can add them further down the line.

4. Block domains in Ad blocker

Ad blocking extensions like AdBlock can help you block cryptocurrency mining. Depending on your web browser, you can find relevant settings to block particular domains. For example, in Chrome, for AdBlock, navigate to the list of extension and find AdBlock. There, 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

adblock stop mining

5. Use NoScripts in Firefox

For Firefox, you can use JavaScript-blocking extensions like NoScript. Before using it to block cryptocurrency mining in the web browser, please note that it’s pretty aggressive and it could break lots of websites as it disables all scripts running on pages. If you’re using Tor Browser, you would already be knowing about NoScripts and its use. You can use any one of these methods to get rid of the cryptocurrency mining in web browser.

firefox noscripts

Should I really go ahead and stop cryptocurrency mining?

The answer to this question depends on the website which is using a crypto miner. If the website is notifying you as soon as you visit it and you’re comfortable with it, then it’s no harm. Another point that you must take into consideration is the mining load that your CPU would bear. A website should also let you know how much processing power does it intend to utilize.

In case you’re willing to support your favorite website via this alternative source of revenue and they are being honest about their practices, things are fine.

Post navigation

Adobe Most Secured Private PGP Key Leaked Online
PowerShdll – Run PowerShell with rundll32 (Bypass software restrictions)

Related Articles

PassPie – Multiplatform Command-Line Password Manager

- Tricks & How To's
July 8, 2019

XGC – Xbox Gift Card Trick to get Cheaper Games

- News, Tricks & How To's
May 23, 2019

Machinae Security Intelligence Collector

- Threat Intelligence, Tricks & How To's
May 19, 2019July 27, 2019
hacker gadgets
hacker phone covers

Recent Posts

NVIDIA Addresses High Security Flaws in GPU Display Drivers and vGPU Software

NVIDIA Addresses High Security Flaws in GPU Display Drivers and vGPU Software

April 1, 2023
Noseyparker - A Command-Line Program That Finds Secrets And Sensitive Information In Textual Data And Git History

Noseyparker – A Command-Line Program That Finds Secrets And Sensitive Information In Textual Data And Git History

April 1, 2023
SOOS DAST: vulnerability scanner against your web apps or APIs

SOOS DAST: vulnerability scanner against your web apps or APIs

April 1, 2023
CVE-2023-29059: Unraveling the Trojanized 3CX Desktop App Supply Chain Attack

CVE-2023-29059: Unraveling the Trojanized 3CX Desktop App Supply Chain Attack

April 1, 2023
CVE-2023-25076: Critical Buffer Overflow Vulnerability in SNIProxy

CVE-2023-25076: Critical Buffer Overflow Vulnerability in SNIProxy

March 31, 2023
Fingerprintx - Standalone Utility For Service Discovery On Open Ports!

Fingerprintx – Standalone Utility For Service Discovery On Open Ports!

March 31, 2023

Social Media Hacking

SocialPath – Track users across Social Media Platforms

SocialPath – Track users across Social Media Platforms

- Social Media Hacking
October 16, 2019October 16, 2019

SocialPath is a django application for gathering social media intelligence on specific username. It checks for Twitter, Instagram, Facebook, Reddit...

SocialScan – Check Email Address and Username Availability on Online Platforms

SocialScan – Check Email Address and Username Availability on Online Platforms

June 17, 2019
Shellphish – Phishing Tool For 18 Social Media Apps

Shellphish – Phishing Tool For 18 Social Media Apps

June 10, 2019July 27, 2019
WhatsApp Hacking using QRLJacking

WhatsApp Hacking using QRLJacking

May 2, 2019May 19, 2019
How to Hack any Facebook Account with Z-Shadow

How to Hack any Facebook Account with Z-Shadow

April 26, 2019June 29, 2020
hacker buffs

About Us

Haxf4rall is a collective, a good starting point and provides a variety of quality material for cyber security professionals.

Join Our Community!

Please wait...
Get the latest News and Hacking Tools delivered to your inbox.
Don't Worry ! You will not be spammed

Active Members

Submit a Tool

Hackers Handbook 2018


Grab your copy here

ABOUT US

Haxf4rall is a collective, a good starting point and provides a variety of quality material for cyber security professionals.

Our primary focus revolves around the latest tools released in the Infosec community and provide a platform for developers to showcase their skillset and current projects.

COMPANY
  • Contact Us
  • Disclaimer
  • Hacker Gadgets
  • LANC Remastered
  • PCPS IP Puller
  • Privacy Policy
  • Sitemap
  • Submit your Tool
Menu
  • Contact Us
  • Disclaimer
  • Hacker Gadgets
  • LANC Remastered
  • PCPS IP Puller
  • Privacy Policy
  • Sitemap
  • Submit your Tool
Live Chat
RESOURCES
  • Attack Process
  • Become a Hacker
  • Career Pathways
  • Dark Web
  • Hacking Books
  • Practice Your Skills
  • Recommended Courses
  • Simple Setup – Hacker 101
Menu
  • Attack Process
  • Become a Hacker
  • Career Pathways
  • Dark Web
  • Hacking Books
  • Practice Your Skills
  • Recommended Courses
  • Simple Setup – Hacker 101
Get Started
TOOLBOX
  • Anonymity
  • Bruteforce
  • DoS – Denial of Service
  • Information Gathering
  • Phishing
  • SQL Injection
  • Vulnerability Scanners
  • Wifi Hacking
Menu
  • Anonymity
  • Bruteforce
  • DoS – Denial of Service
  • Information Gathering
  • Phishing
  • SQL Injection
  • Vulnerability Scanners
  • Wifi Hacking
Tools Directory

2014 – 2020 | Haxf4rall.com               Stay Connected:

Facebook Twitter Google-plus Wordpress
Please wait...

Join Our Community

Subscribe now and get your free HACKERS HANDBOOK

Don't Worry ! You will not be spammed
SIGN UP FOR NEWSLETTER NOW