Last updated: 2026-07-18 09:34 UTC
Add StyloBot to an ASP.NET Core app
You have a .NET web app and want to stop scrapers, credential stuffing, and click fraud without a separate proxy. Embed StyloBot as middleware. It runs in-process and votes on every request.
Add the package
dotnet add package Mostlylucid.BotDetection
Wire it up
builder.Services.AddBotDetection(builder.Configuration);
// ...
app.UseBotDetection();
Configure it (FOSS: YAML/JSON)
Detection ships sensible defaults. To tune a policy, edit your config:
BotDetection:
Policies:
default: { action: challenge }
"/api/*": { action: block, sensitivity: high }
Changes apply on the next config reload.
Or drive it from the dashboard (commercial)
With a commercial licence you edit the same policies live in the dashboard with hot-reload, no file edits and no restart. Same engine, nicer surface. See plans.
Verify
Hit your app and open /dashboard (or the FOSS local dashboard). Your own request shows up in the live detection view with its score and the detectors that voted.