/

Quick Start - Monitor for .NET

Get ByteHide Monitor protecting your .NET application in under 5 minutes.


Prerequisites


Step 1: Install the NuGet Package

Bash
dotnet add package ByteHide.Monitor

Or via the NuGet Package Manager in Visual Studio:

CODE
Install-Package ByteHide.Monitor

Step 2: Configure Monitor

For Standalone Applications (Console, Desktop, Mobile, IoT)

C#
using Bytehide.Monitor.Core.Actions;
using Bytehide.Monitor.Core.Protection;

await Bytehide.Monitor.Payload.ConfigureAsync(config =>
{
    config.EnableAllProtections(ActionType.Close, intervalMs: 60000);
});

For ASP.NET Core Applications

C#
// Program.cs
builder.Services.AddByteHideMonitor(monitor => monitor
    .WithProtection(ProtectionModuleType.SqlInjection, ActionType.Block)
    .WithProtection(ProtectionModuleType.CrossSiteScripting, ActionType.Block)
);

app.UseByteHideMonitor();

Step 3: Run Your Application

Build and run. Monitor is now active and protecting your application at runtime.

Bash
dotnet run

Offline-First Architecture

Monitor operates locally without requiring a backend connection. All detection and interception happens within your application. The backend is only used for incident reporting and analytics.


Choose Your Application Type

For detailed installation guides tailored to your application type:


Next Steps

Previous
Introduction