AbuseIPDB 1.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package AbuseIPDB --version 1.0.0
NuGet\Install-Package AbuseIPDB -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AbuseIPDB" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AbuseIPDB --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AbuseIPDB, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install AbuseIPDB as a Cake Addin #addin nuget:?package=AbuseIPDB&version=1.0.0 // Install AbuseIPDB as a Cake Tool #tool nuget:?package=AbuseIPDB&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
AbuseIPDB ⛔
An async C# library for interacting with the v2 AbuseIPDB API.
Usage
Available on NuGet as AbuseIPDB
, methods can be found under the class AbuseIPDBClient
.
You will need to create your own API key: https://www.abuseipdb.com/account/api
https://www.nuget.org/packages/AbuseIPDB
Features
- Made with .NET 6
- Fully async
- Full coverage of the FREE and Premium v2 API
- Deep documentation
- No external dependencies (uses integrated HTTP and JSON)
- Easily lookup IP addresses and report abuse
- Custom exceptions (
AbuseIPDBException
) for advanced catching - Parsing of server errors
- Automatic request retries
- Example project to demonstrate all capabilities of the library
Example
Under the Example
directory you can find a working demo project that implements this library.
Code Samples
Creating a new AbuseIPDB API client
AbuseIPDBClient client = new("API KEY");
Checking an IP
IpCheckResult check = await client.Check("1.1.1.1", true, 90);
Reporting an abusive IP
IpReportResult report = await client.Report("127.0.0.1", new IpReportCategory[] { IpReportCategory.WebSpam, IpReportCategory.SSH }, "Test Report");
Bulk-reporting many IPs at once
BulkReportResult bulkReport = await client.BulkReport(stream);
Requesting reports for an IP
IpReport[] reports = await client.GetReports("91.240.118.222", 300, 90);
Downloading a blacklist
BlacklistedIp[] ips = await client.GetBlacklist(10000);
Checking a CIDR block for recently reported IPs
CheckBlockResult checkBlock = await client.CheckBlock("186.2.163.0/24", 30);
Clearing reports on an IP
ClearAddressResult clearAddress = await client.ClearAddress("127.0.0.1");
Available methods
- Task<BlacklistedIp[]> GetBlacklist(int limit = 10000, int? confidenceMinimum = null, string[] onlyCountries = null, string[] exceptCountries = null)
- Task<BulkReportResult> BulkReport(Stream csvStream)
- Task<CheckBlockResult> CheckBlock(string network, int maxAge)
- Task<ClearAddressResult> ClearAddress(string ip)
- Task<IpCheckResult> Check(string ip, bool verbose = true, int maxAge = 90)
- Task<IpReportResult> Report(string ip, IpReportCategory[] categories, string comment)
- Task<IpReport[]> GetReports(string ip, int limit = 100, int maxAge = 90)
Resources
- Website: https://www.abuseipdb.com
- NuGet: https://www.nuget.org/packages/AbuseIPDB
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.