From c086f894b1954efc371d652ef20002868b778fe9 Mon Sep 17 00:00:00 2001 From: spycrab Date: Tue, 29 May 2018 03:56:12 +0200 Subject: [PATCH] Core/GeckoCodeConfig: Circumvent DDOS protection --- Source/Core/Core/GeckoCodeConfig.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Core/Core/GeckoCodeConfig.cpp b/Source/Core/Core/GeckoCodeConfig.cpp index df62768acd..8810aee3b1 100644 --- a/Source/Core/Core/GeckoCodeConfig.cpp +++ b/Source/Core/Core/GeckoCodeConfig.cpp @@ -32,6 +32,10 @@ std::vector DownloadCodes(std::string gameid, bool* succeeded) std::string endpoint{"http://geckocodes.org/txt.php?txt=" + gameid}; Common::HttpRequest http; + + // Circumvent high-tech DDOS protection + http.SetCookies("challenge=BitMitigate.com;"); + const Common::HttpRequest::Response response = http.Get(endpoint); *succeeded = response.has_value(); if (!response)