edoardottt / cariddi

Take a list of domains, crawl urls and scan for endpoints, secrets, api keys, file extensions, tokens and more
https://edoardoottavianelli.it
GNU General Public License v3.0
1.49k stars 152 forks source link

Add rate limit option #155

Open ocervell opened 4 months ago

ocervell commented 4 months ago

Add a rate limit option for controlling crawling speed (-rl, -rate-limit). You maybe can use https://github.com/projectdiscovery/ratelimit for this.

edoardottt commented 4 months ago

Hi @ocervell , there is this option available in cariddi, it's not a rate limiter..but similar:

  -d int
     Delay between a page crawled and another.

Seems this is in colly the way to provide rate limiting (https://go-colly.org/docs/examples/rate_limit/).

ocervell commented 4 months ago

Argh ... this is clearly not enough since it depends on the number of threads as well... adding a delay between requests is okay but not as precise as setting a global rate limit. I will investigate to see what we can do.