with this are the users still infected even if they navigate away from the pagina?
Do thesis sort of programs only work while the user has the pagina open ter the browser?
Yes, the script will only run on the webstek that includes it, while the pagina is open ter the browser
More information about this script: https://coin-hive.com/
The miner runs until you explicitely zekering it again or the user navigates away.
Coinhive does not emerge to be “malware” since it does not show up to do anything particularly harmful to the user’s pc. If that is the case, the users computers were never “infected” with anything.
It is utterly common thesis days for websites to stream tons of third party scripts and cookies te the background and do hundreds of things you are not aware of every time you use the internet. Most sites explosion a Google Analytics tracking script when you visit them, even however you did not authorize them to do that. But that would not be considered malware. Most sites fountain persistent third-party cookies that track your presence from one webstek to another and create a massive profile of your online habits. This is why you could be shopping for boots on one webpagina, and then all of a sudden find that Facebook is serving you ads for boots. But that also is generally not considered malware.
I am not familiar with the coin-hive service, but actually script which you have provided contains such lines:
Spil you see it is using Workers. I wasgoed not investigatin the entire script, but anyway using web workers means that some operations can be running even after pagina wasgoed closed. More information ter this postbode.
So the very very first response to your question is YES, users can be possibly infected for some time after pagina wasgoed closed (ter theory, if script is written te such way).
But actually script seems to be terminated very soon by the system itself. Also coin-hive toneelpodium is not placed spil a malware and should be safe for users system. I don’t think that you should worry about that at all.