Mining of the first digital assets began in January 2009: they were Bitcoins. But technology evolved, new cryptocurrencies appeared, as well as schemes for obtaining them. This article discusses such a phenomenon as browser mining scripts. These are programs that use the computing power of website visitors. Initially, they were conceived as an alternative to advertising banners: the owner of the site could monetize it by mining on someone else’s equipment. However, over time, this began to be abused.
The principle of operation of scripts for mining
For the first time such a program appeared in 2017. CoinHive is a mining script for mining Monero on the equipment of website visitors. It was installed by the owners of web resources for monetization. Their visitors logged in, agreed to the terms and conditions and voluntarily mined XMR to the developers. The CoinHive program mined coins on central processing units (CPUs). Often, they were only loaded by 40-70%.
In 2018, the developers of the mining program stopped supporting it and removed it. This is due to the abuse of CoinHive. Hackers began to embed it on third-party sites, services and platforms without the knowledge of their creators. All profits made from affected users were sent to the wallets of the attackers.
According to PublicWWWW service, as of mid-October 2022 CoinHive is present on 1 website worldwide.
Cryptocurrency mining scripts come in different ways of implementation and operation. They are categorized into:
5020 $
신규 사용자를 위한 보너스!
바이비트는 암호화폐 거래를 위한 편리하고 안전한 조건을 제공하며, 낮은 수수료, 높은 수준의 유동성, 시장 분석을 위한 최신 도구를 제공합니다. 현물 및 레버리지 거래를 지원하며 직관적인 인터페이스와 튜토리얼을 통해 초보자와 전문 트레이더를 돕습니다.
100 $ 보너스 획득
신규 사용자를 위해!
암호화폐 세계에서 빠르고 안전하게 여정을 시작할 수 있는 최대 규모의 암호화폐 거래소입니다. 이 플랫폼은 수백 개의 인기 자산, 낮은 수수료, 거래 및 투자를 위한 고급 도구를 제공합니다. 간편한 등록, 빠른 거래 속도, 안정적인 자금 보호 기능을 갖춘 바이낸스는 모든 수준의 트레이더에게 최고의 선택입니다!
- Hidden.
- Scripts in the form of widgets.
- Captcha.
- Shortened links.
- With API integration.
Hidden script
The program is embedded on the Internet resource together with its program code, so users do not see the mining script. But they receive a request to apply their computing power. This allows you to bypass the protection of antivirus programs. The disadvantage of this method is that most site visitors do not agree to such conditions. But some of them accept them.
The hidden web miner method is rather designed for inattentive users who do not read such notifications. But a part of them agrees to the terms on their own.
Widget
This method is based on the curiosity of visitors to the resource. The owner makes a widget and disguises it under any functional part of the site, for example, a computer test for the speed of cryptocurrency mining, weather and so on. When the user clicks on it, the script is launched. Widgets can be customizable in appearance and size. Earlier on the CoinHive website there was a list of commands to change them.
Captcha
This method is popular among the owners of online resources. They add captchas that users need to pass in order to perform certain actions. But to do this, they need to provide the service with a hash rate of 1024 or 2048 H/s. There are many situations where captcha will be appropriate:
- Authorization.
- Registration.
- Navigating to a website or tabs.
- Writing a review.
- Rating (liking).
Shortened links
If the site is filled with content, then its owner can leave URLs to primary sources. Links for convenience are shortened through special services. Such a feature was previously offered by the developers of CoinHive on their platform. The function was available to registered users.
The mining script is triggered when visitors to the Internet resource click on the link left. The amount of the required hash rate for redirection is prescribed in the code. It can be set from 1024 to 2048 H/s. Users will not feel uncomfortable when clicking on the link, and the site owner will get coins.
HTTP API
This is the fairest way to implement a browser mining script. Its essence is to allow users themselves to earn with the payment of a commission. The site owner creates personal accounts for visitors, where they start mining coins and earn, he himself takes fees from users for the services offered.
The owner can take 10-30% commission, which is less profitable compared to previous methods. However, the opportunity to earn will attract many more users. A part of them will mine cryptocurrency non-stop. In sum, this can lead to higher profitability.
This method is more complicated relative to the previous ones. The site owner needs to create personal accounts, customize the API interface and attract visitors to mining.
How to detect mining scripts
CoinHive is the most popular program for browser-based crypto mining. However, there are other mining scripts available. Their comparison is in the table below.
이름 | Coin to be mined | Commission of the script | Workability in 2022 |
---|---|---|---|
In 2023, there are almost no legitimate mining scripts left. Most of them are designed for malicious use by hackers. Often, these programs are covertly embedded on web resources and mine digital assets of their visitors. This leads to slower page loading speeds, freezes, rapid discharge of laptops, smartphones and tablets. But there are ways to combat them.
How to secure your browser
In 2023, there are the following ways to do it:
- Edit the system hosts file. In the Windows operating system, it is located in the System32driversetc folder. You need to open the file in Notepad or a code editor (Notepad++, SublimeText and others). At the bottom you will need to enter 0.0.0.0.0 [domain name], for example – 0.0.0.0.0 coin-hive.com. After that, the system will start blocking access to this service. The mining script will not start. The disadvantage of the method is that you need to manually add domains.
- Another method is to install a special utility, for example, Anti-WebMiner. It blocks the work of programs for browser-based mining of digital assets.
- Disable JavaScript. Scripts work in this programming language. This is done in the browser or with the help of extensions (for example, NoScript). However, the method has a disadvantage – a part of web resources needs JavaScript to work.
- Install the browser extension NoCoin. The program is designed to block mining scripts.
자주 묻는 질문
🙋♂️ How do I realize that a mining script is running on an Internet resource?
On certain pages your PC will slow down and freeze. You need to check the CPU load through the system program “Device Manager”. It will most likely be running at 100%.
🔴 What will happen to the CPU because of JavaScript miner?
It will start overheating, which will reduce the life of the device. There may also be constant reboots of the operating system.
🤔 Are there malicious programs that mine coins from outside the browser?
Yes, they are called miner viruses. They infect your computer and then use its processing power for crypto mining. These viruses harness video cards, processors, and storage drives.
😎 How to detect hidden miners on a computer?
The hardware in your PC will get noisy and overheat, and the system will start to slow down. But some of the virus miners know how to hide. They shut down when the system needs power to perform certain tasks. To detect them, you will need to use an antivirus.
❓ What is mining?
It is the process of solving special cryptographic problems. It is needed to find hashes (block identifiers) in decentralized networks.
텍스트에 오류가 있나요? 마우스로 강조 표시하고 Ctrl + 입력합니다.
작성자: 사이페데인 암무스암호화폐 경제학 전문가입니다.