Re:I built a screenshot API and some guy was mining cryptocu...
by icebraining on Friday April 27, 2018 @06:21PM
(#16944915)
Adblock?
Re:I built a screenshot API and some guy was mining cryptocu...
by bdcravens on Friday April 27, 2018 @07:20PM
(#16945195)
If you were using Selenium to generate the screenshots (they weren't, they were using curl) you could add Adblock to the browser being used on your server (Selenium just automates a real browser) which will block Coinhive.
Re:I built a screenshot API and some guy was mining cryptocu...
by icebraining on Saturday April 28, 2018 @02:26AM
(#16946348)
Thanks, I didn't know adblock blocked Coinhive.
1. Use cgroups to limit cpu usage on a process.
2. Block coinhive
3. Implement captchas
4. Cloudflare
5. Adblock
6. API throttling and 1 minute cache per URL
7. Disallow 1 IP from creating more than X accounts at a certain speed per day