https://github.com/udger/udger-dotnet
.NET agent string parser based on Udger https://udger.com/products/local_parser
https://github.com/udger/udger-dotnet
bot-detection device-detector mobile-detection user-agent-parser
Last synced: 5 months ago
JSON representation
.NET agent string parser based on Udger https://udger.com/products/local_parser
- Host: GitHub
- URL: https://github.com/udger/udger-dotnet
- Owner: udger
- License: mit
- Created: 2016-01-07T09:01:42.000Z (over 10 years ago)
- Default Branch: dev
- Last Pushed: 2020-11-01T20:06:33.000Z (over 5 years ago)
- Last Synced: 2025-11-27T14:17:04.322Z (6 months ago)
- Topics: bot-detection, device-detector, mobile-detection, user-agent-parser
- Language: C#
- Homepage:
- Size: 809 KB
- Stars: 12
- Watchers: 5
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Udger client for .NET (data ver. 3)
Local parser is very fast and accurate useragent string detection solution. Enables developers to locally install and integrate a highly-scalable product.
We provide the detection of the devices (personal computer, tablet, Smart TV, Game console etc.), operating system, client SW type (browser, e-mail client etc.)
and devices market name (example: Sony Xperia Tablet S, Nokia Lumia 820 etc.).
It also provides information about IP addresses (Public proxies, VPN services, Tor exit nodes, Fake crawlers, Web scrapers, Datacenter name .. etc.)
### Requirements
- .NET Framework 4 or later.
- ADO.NET Data Provider for SQLite (included)
- datafile v3 (udgerdb_v3.dat) from https://data.udger.com/
### Automatic updates download
- for autoupdate data use Udger data updater (https://udger.com/support/documentation/?doc=62)
###Features
- Fast
- Written in C#
- LRU cache
- Released under the MIT
### Usage
You should review the included example (`ConsoleTest\Program.cs`)
Here's a quick example:
```csharp
UdgerParser parser = new UdgerParser();
// Set data dir (in this directory is stored data file: udgerdb_v3.dat)
// Data file can be downloaded manually from https://data.udger.com/, but we recommend use udger-updater (https://udger.com/support/documentation/?doc=62)
parser.SetDataDir(@"C:\udger");
// set user agent and/or IP address
parser.ua = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36";
parser.ip = "2600:3c01::f03c:91ff:fe70:9208";
// parse
parser.parse();
Udger.Parser.UserAgent a = parser.userAgent;
Udger.Parser.IPAddress i = parser.ipAddress;
```
### Documentation for programmers
- https://udger.com/pub/documentation/parser/NET/html/
### Author
The Udger.com Team (info@udger.com)
### old v2 format
If you still use the previous format of the db (v2), please see the branch old_format_v2