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

Player Skin Fetching Fix part 2 #293

Merged
merged 3 commits into from
Dec 18, 2023

Conversation

kumquat-ir
Copy link
Contributor

Visage (the service used by the skin fetching fix) recently changed to require a non-generic user agent in API requests due to an influx of spam requests. (run eg. curl https://visage.surgeplay.com/skin/Notch.png to get a message describing this in more detail)
This sets a custom user agent for all requests made by ThreadDownloadImageData to satisfy this condition, currently formatted as Minecraft/1.7.10 Hodgepodge/2.3.40 (+https://github.com/GTNewHorizons/Hodgepodge)

(Bonus: As of a couple minutes ago at the time of this PR, Visage is now also geoblocking requests from Russia due to that being where all the spam requests are coming from and no other good way to keep them from eating bandwidth etc)

@Dream-Master Dream-Master requested review from a team and mitchej123 December 17, 2023 02:44
@mitchej123 mitchej123 merged commit 57b9a00 into GTNewHorizons:master Dec 18, 2023
1 check passed
Dream-Master pushed a commit that referenced this pull request Dec 20, 2023
* set user agent on image download requests

(cherry picked from commit 57b9a00)
@unascribed
Copy link

Sorry for the trouble this has caused 😓

I would like to unblock Russia but I have no choice but to pay for all the bytes sent through the CDN, which includes errors, and the request volume is large enough even error pages are an issue. As the American holiday season comes to an end I'd like to try to find a better permanent solution to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants