mirror of
https://github.com/Jackett/Jackett
synced 2025-02-24 15:21:06 +00:00
BaseIndexer: add cloudflare ReCaptcha detection
This commit is contained in:
parent
fc060d6468
commit
2d5a90ae31
1 changed files with 5 additions and 0 deletions
|
@ -575,6 +575,11 @@ namespace Jackett.Common.Indexers
|
||||||
{
|
{
|
||||||
throw new Exception("Request to " + response.Request.Url + " failed (Error " + response.Status + ") - The tracker seems to be down.");
|
throw new Exception("Request to " + response.Request.Url + " failed (Error " + response.Status + ") - The tracker seems to be down.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (response.Status == System.Net.HttpStatusCode.Forbidden && response.Content.Contains("<span data-translate=\"complete_sec_check\">Please complete the security check to access</span>"))
|
||||||
|
{
|
||||||
|
throw new Exception("Request to " + response.Request.Url + " failed (Error " + response.Status + ") - The page is protected by an Cloudflare reCaptcha. The page is in aggressive DDoS mitigation mode or your IP might be blacklisted (e.g. in case of shared VPN IPs). There's no easy way of making it usable with Jackett.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected async Task FollowIfRedirect(WebClientStringResult response, string referrer = null, string overrideRedirectUrl = null, string overrideCookies = null, bool accumulateCookies = false)
|
protected async Task FollowIfRedirect(WebClientStringResult response, string referrer = null, string overrideRedirectUrl = null, string overrideCookies = null, bool accumulateCookies = false)
|
||||||
|
|
Loading…
Reference in a new issue