Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] rate limit support for http requests #362

Closed
ZeroDot1 opened this issue Jan 12, 2021 · 2 comments · Fixed by #449 or #446
Closed

[Feature] rate limit support for http requests #362

ZeroDot1 opened this issue Jan 12, 2021 · 2 comments · Fixed by #449 or #446
Labels
Status: Completed Nothing further to be done with this issue. Awaiting to be closed. Type: Enhancement Most issues will probably ask for additions or changes.

Comments

@ZeroDot1
Copy link

Add a function to make a random delay between the requests.
The user should have the possibility to set a time delay, e.g. a random delay from 1 to 10 seconds.
This function helps not to be blocked directly by the different services when you make a lot of requests.

@ehsandeep ehsandeep added the Type: Enhancement Most issues will probably ask for additions or changes. label Jan 12, 2021
@ehsandeep
Copy link
Member

ehsandeep commented Jul 30, 2021

For this, a new flag, say rate-limit, can be added to ensure that the user-defined delay between each HTTP request sent from SubFinder is respected.

-rate-limit         maximum number of requests to send per second

Example use:-

subfinder -d example.com -rate-limit 2

@ehsandeep ehsandeep added the Status: Available No one has claimed responsibility for resolving this issue label Jul 30, 2021
@ehsandeep ehsandeep changed the title [Feature] Add a function to make a random delay between the requests. [Feature] rate limit support for http requests Aug 10, 2021
@ehsandeep ehsandeep linked a pull request Aug 12, 2021 that will close this issue
@ehsandeep ehsandeep added Status: Completed Nothing further to be done with this issue. Awaiting to be closed. and removed Status: Available No one has claimed responsibility for resolving this issue labels Aug 12, 2021
@ehsandeep ehsandeep linked a pull request Sep 25, 2021 that will close this issue
@zonabansel
Copy link

../go/pkg/mod/github.com/projectdiscovery/ratelimit@v0.0.0-20221004232058-7b82379157fa/ratelimit.go:59:13: cannot use math.MaxInt64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Completed Nothing further to be done with this issue. Awaiting to be closed. Type: Enhancement Most issues will probably ask for additions or changes.
Projects
None yet
3 participants