SlenkyDev / StopRussia.net.ua

Based on https://stop-russian-desinformation.near.page
The Unlicense
42 stars 14 forks source link

Rate limit the amount of requests after fail #24

Open aljaxus opened 2 years ago

aljaxus commented 2 years ago

While spawning a few new requests every so ofther is rather lightweight, spawning loads of them, in a constant loop makes this a rather heavy task.

Spawning loads of requests all the time also increases the chances of your access getting rate limited by your ISP, because it is surely flagged as suspicious.

I'd like to suggest that there is a simple system implemented which adds a delay between spawning new requests after X amount of requests fail in a row for a given site.


Ergo.:


This would increase the load a single client can put on other, still reachable sites, and remove the unnecessary load it's using for unreachable sites.

SlenkyDev commented 2 years ago

Mind doing so in a pull-request?