2020-02-09 02:35:16 +00:00
|
|
|
using System;
|
2015-07-12 17:52:32 +00:00
|
|
|
|
2018-03-10 08:05:56 +00:00
|
|
|
namespace Jackett.Common.Utils
|
2015-07-12 17:52:32 +00:00
|
|
|
{
|
|
|
|
public static class BrowserUtil
|
|
|
|
{
|
2020-11-04 22:01:58 +00:00
|
|
|
// When updating these make sure they are not detected by the incapsula bot detection engine
|
|
|
|
// (e.g. kickasstorrent indexer)
|
2020-03-21 20:11:05 +00:00
|
|
|
public static string ChromeUserAgent => Environment.OSVersion.Platform == PlatformID.Unix ?
|
2020-12-13 20:42:10 +00:00
|
|
|
"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";
|
2016-12-06 08:40:38 +00:00
|
|
|
|
2015-07-12 17:52:32 +00:00
|
|
|
}
|
|
|
|
}
|