-
Notifications
You must be signed in to change notification settings - Fork 1k
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
This Script Won't Work Due to Cloudflare Rate Limiting (Working Code Included) #146
Comments
@MatchaOnMuffins bro, can you write a code where the nitro check will be without a webhook? And so that the logs are also displayed |
|
Is there any way to make it faster? Doubt it since ratelimiting but, would be nice |
One solution could be proxy servers, perhaps? |
Yes, proxy servers would work, but it would still take forever to generate a working code |
You need private proxies for that, might as well just buy nitro |
exactly |
Describe the bug
Discord protects its services with the Cloudflare network, which imposes strict API rate limiting.
The original Gift Code validity checker
quickChecker
(which relies on spamming the API) will get blocked after roughly 5 requests.The Discord Gift Code API rate limit is roughly 5 requests per minute.
This is a fundamental issue (aside from the minuscule chance of getting a valid code by brute-forcing).
Desktop:
Smartphone:
Additional context
Working Code
The following is an improved version of the original code, where rate limits are handled by default and the possibility of generating legit Nitro Gift Codes actually exist.$3.12 \times 10^ {-30}$ (if around 10000 Nitro Gift Codes are in circulation at any given moment), so the possibility of obtaining Nitro this way is possibly 28 orders of magnitudes smaller than simply asking a parental figure to purchase it for you and 21 orders of magnitudes smaller than winning the world's biggest lottery.
However, the chances of getting a valid Nitro Gift Code using any brute-forcing method is roughly
Other Issues
The URL provided to
quickChecker
inmain
is an address instead of a Gift Code, which will result in a response status code of404 not found
regardless of the Gift Code.changing
url
tocode
in line 120 will fix this.This issue is fixed in the code above.
Discord-Nitro-Generator-and-Checker/main.py
Lines 118 to 120 in 63d7070
The text was updated successfully, but these errors were encountered: