Skip to content

Commit 31d7b8c

Browse files
MakaopiorMazov Sergey
and
Mazov Sergey
authored
Added CensysInspect bot User-Agent (#56)
Co-authored-by: Mazov Sergey <[email protected]>
1 parent 0ded306 commit 31d7b8c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/MyCSharp.HttpUserAgentParser/HttpUserAgentStatics.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ public static readonly (string Key, string Value)[] Robots =
270270
( "SEOkicks", "SEOkicks"),
271271
( "seoscanners.net", "SEO Scanners"),
272272
( "Sistrix", "Sistrix" ),
273-
( "WhatsApp", "WhatsApp" )
273+
( "WhatsApp", "WhatsApp" ),
274+
( "CensysInspect", "CensysInspect" )
274275
];
275276

276277
/// <summary>

tests/MyCSharp.HttpUserAgentParser.UnitTests/HttpUserAgentParserTests.cs

+1
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ public void BrowserTests(string ua, string name, string version, string platform
146146
[InlineData("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36; compatible; OAI-SearchBot/1.0; +openai.com/searchbot", "OAI-SearchBot")]
147147
[InlineData("Mozilla/5.0 (compatible; archive.org_bot +http://archive.org/details/archive.org_bot)", "archive.org")]
148148
[InlineData("Mozilla/5.0 (compatible; MojeekBot/0.11; +mojeek.com/bot.html)", "MojeekBot")]
149+
[InlineData("Mozilla/5.0 (compatible; CensysInspect/1.1; +https://about.censys.io/)", "CensysInspect")]
149150
public void BotTests(string ua, string name)
150151
{
151152
HttpUserAgentInformation uaInfo = HttpUserAgentInformation.Parse(ua);

0 commit comments

Comments
 (0)