Jackett/src/Jackett.Common/Utils/BrowserUtil.cs

15 lines
592 B
C#
Raw Normal View History

2020-02-09 02:35:16 +00:00
using System;
2015-07-12 17:52:32 +00:00
namespace Jackett.Common.Utils
2015-07-12 17:52:32 +00:00
{
public static class BrowserUtil
{
// When updating these make sure they are not detected by the incapsula bot detection engine
// (e.g. kickasstorrent indexer)
public static string ChromeUserAgent => Environment.OSVersion.Platform == PlatformID.Unix ?
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" :
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36";
2015-07-12 17:52:32 +00:00
}
}