Owin
Installation
Two types of installation are available to deploy the DataDome module:
1. Standard Installation
Download the following file to your server:
https://package.datadome.co/aspnet/DataDome-OWIN21-latest.zip
Extract the files and copy the /bin
folder contents to your website's /bin
folder.
2. NuGet Installation
The HTTP module is available as a NuGet package.
You can add it to the project using your favorite IDE (i.e. Visual Studio, Xamarin Studio, MonoDevelop, SharpDevelop) via the NuGet console or any other NuGet-compatible tools (i.e. Continuous Integrations and Delivery tools like TeamCity, Octopus Deploy, etc.)
Install-Package DataDome.Owin
Registering
ASP.Net Dome is supplied with the method extension to register the middleware. Below is an example of the startup entry point configuration:
using System;
using Microsoft.Owin;
using Owin;
using DataDome.Owin;
[assembly:OwinStartup(typeof(Demo.Startup))]
namespace Demo
{
public class Startup
{
public void Configuration(IAppBuilder app)
{
app.UseDataDome();
// All middleware after Data Dome will be shielded.
}
}
}
Configuring the module
The module can be configured using the appSettings
section in the Web.config
file, similarly to the following example:
<configuration>
[...]
<appSettings>
[...]
<add key="dome:domain" value="api.datadome.co" />
<add key="dome:protocol" value="http" />
<add key="dome:license" value="...you secret license key..." />
</appSettings>
</configuration>
Available settings are listed here.
Updated about 1 month ago