https://github.com/hmlendea/nuciapi.middleware
NuGet library containing the middleware components for NuciAPI-based APIs.
https://github.com/hmlendea/nuciapi.middleware
api csharp dotnet nuciapi nuget nuget-package rest rest-api
Last synced: 3 months ago
JSON representation
NuGet library containing the middleware components for NuciAPI-based APIs.
- Host: GitHub
- URL: https://github.com/hmlendea/nuciapi.middleware
- Owner: hmlendea
- License: gpl-3.0
- Created: 2026-03-05T20:23:32.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2026-04-16T10:29:55.000Z (3 months ago)
- Last Synced: 2026-04-16T12:33:56.496Z (3 months ago)
- Topics: api, csharp, dotnet, nuciapi, nuget, nuget-package, rest, rest-api
- Language: C#
- Homepage:
- Size: 57.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Security: Security/HeaderValidationMiddleware.cs
Awesome Lists containing this project
README
[](https://hmlendea.go.ro/fund.html) [](https://github.com/hmlendea/nuciapi.middleware/releases/latest) [](https://github.com/hmlendea/nuciapi.middleware/actions/workflows/dotnet.yml)
# Installation
[](https://nuget.org/packages/NuciAPI.Middleware)
**.NET CLI**:
```bash
dotnet add package NuciAPI.Middleware
```
**Package Manager**:
```powershell
Install-Package NuciAPI.Middleware
```
# Usage
```csharp
builder.Services.AddNuciApiScannerProtection();
app.UseNuciApiExceptionHandling();
app.UseNuciApiScannerProtection();
```
`UseNuciApiScannerProtection()` blocks requests for resources commonly targeted by scanners, and bans the caller IP address in the in-memory cache for 10 hours so that any subsequent requests from the same address are denied as well.