Skip to content

Commit 8b7031a

Browse files
author
Mazov Sergey
committed
Added more bot user-agents
1 parent 822bbc3 commit 8b7031a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/MyCSharp.HttpUserAgentParser/HttpUserAgentStatics.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,9 @@ public static readonly (string Key, string Value)[] Robots =
275275
( "CensysInspect", "CensysInspect" ),
276276
( "InternetMeasurement", "InternetMeasurement" ),
277277
( "Barkrowler", "Barkrowler" ),
278-
( "BrightEdge", "BrightEdge" )
278+
( "BrightEdge", "BrightEdge" ),
279+
( "ImagesiftBot", "ImagesiftBot" ),
280+
( "Cotoyogi", "Cotoyogi" )
279281
];
280282

281283
/// <summary>

tests/MyCSharp.HttpUserAgentParser.UnitTests/HttpUserAgentParserTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ public void BrowserTests(string ua, string name, string version, string platform
151151
[InlineData("Mozilla/5.0 (compatible; InternetMeasurement/1.0; +https://internet-measurement.com/)", "InternetMeasurement")]
152152
[InlineData("Mozilla/5.0 (compatible; Barkrowler/0.9; +https://babbar.tech/crawler)", "Barkrowler")]
153153
[InlineData("BrightEdge Crawler/1.0 ([email protected])", "BrightEdge")]
154+
[InlineData("Mozilla/5.0 (compatible; ImagesiftBot; +imagesift.com)", "ImagesiftBot")]
155+
[InlineData("Mozilla/5.0 (compatible; Cotoyogi/4.0; +https://ds.rois.ac.jp/center8/crawler/)", "Cotoyogi")]
154156
public void BotTests(string ua, string name)
155157
{
156158
HttpUserAgentInformation uaInfo = HttpUserAgentInformation.Parse(ua);

0 commit comments

Comments
 (0)