Update Slexy input to use HTTPS, unique UA #94
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello,
I'm the maintainer of the Slexy.org Pastebin. I've noticed users of this application frequently violating the Terms of Service, so here's a small PR to help remedy some of the violations. Other issues require additional work by other contributors to be resolved.
Per Slexy.org Terms of Service:
This PR sets the UA to
PasteHunter
, ensuring it is compliant with this item of the ToS.Per the Terms of Service:
Due to unnecessary HTTP to HTTPS redirects, PasteHunter users often exceed 60 requests per second. This PR changes the scheme to
https://
, which reduces the number of total requests to what is absolutely necessary, reducing the chances of users exceeding 60 requests per minute.There is still need to throttle requests to ensure that 60 req/s is not exceeded. There does not appear to be any throttling at the moment. That is out of scope of my Python expertise, but I'd appreciate it if a maintainer or contributor implemented throttling. Otherwise, I will be forced to enforce stricter automatic rules around this, which are likely to cause PasteHunter users to be temporarily banned. Many users are already temporarily or permanently banned due to this behavior.
Thanks for reviewing this PR and understanding that all users must abide by the Terms of Service of each provider.