BrowserUtil: update ChromeUserAgent

This commit is contained in:
kaso17 2018-01-22 16:55:54 +01:00
parent 9cc4021cb3
commit 8e9b144cff
1 changed files with 3 additions and 2 deletions

View File

@ -12,13 +12,14 @@ namespace Jackett.Utils
public static string ChromeUserAgent
{
get {
// When updating these make sure they are not detected by the incapsula bot detection engine (e.g. kickasstorrent indexer)
if (System.Environment.OSVersion.Platform == PlatformID.Unix)
{
return "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chrome/47.0.2526.73 Safari/537.36";
return "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36";
}
else
{
return "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.73 Safari/537.36";
return "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) 63.0.3239.132 Safari/537.36";
}
}
}