C0nw0nk / CoinHive

A nice friendly simple and easly customizable GUI for coinhives javascript miner to embed onto websites so users of your site can interact with features of the miner on every single page this javascript miner is to help those who have problems with advertisements/advertising/ads popups banners mobile redirects malvertising/malware etc and provide a all around better cleaner web experience for everyone. coinhive.com
https://c0nw0nk.github.io/CoinHive/
69 stars 51 forks source link

any way enable no-cache? #4

Open MSFTserver opened 6 years ago

MSFTserver commented 6 years ago

seems whenever my browser caches the webpage it throws a virus error due to coinhives script being cached its not a big issue as coinhive script has just been flagged as malware due to people hiding it in other programs but it would be nice if we someone could add no-caching somewhere or somehow if it is possible

C0nw0nk commented 6 years ago

I would say look into grabbing the following .js file.

createScriptElement.src = 'https://coinhive.com/lib/coinhive.min.js';

Instead of inserting the javascript source tag like this anymore, To use XMLHTTPRequest to get the coinhive library contents and then run it like that.

https://stackoverflow.com/questions/3728798/running-javascript-downloaded-with-xmlhttprequest (May work also may not work) Just a idea it should not cache it though since it will be the HTML headers your site / server sends it uses now.