WebKnight.NET
What is it
We have a version of WebKnight that is programmed in C# .NET 4.0 instead of C++. So a managed module instead of a native one. Only Microsoft dependencies, so a pure .NET library.
Purpose
This version can be implemented as a module in your website and you can access the firewall functionality from within your ASP.NET pages. You can change the configuration or call validation or scanning functions of our firewall.
Bugs fixed
This version supports WebSockets on IIS 10. The WebKnight classic version no longer supports WebSockets.
Add to ASP.NET
You can add the dll as any other library in your ASP.NET website. Use Add Reference to add the dll.
You can then call WebKnightModule.WebKnightModule.Settings to change individual settings or call the Firewall functionality to use as input validation filters or call other functions from the assembly.
Website node
If you want to run WebKnight for a single website, copy the WebKnightModule.dll to the bin folder and add the module in your web.config:
<system.webServer>
<!-- Load WebKnight Module -->
<modules>
<add name="WebknightModule" type="WebKnightModule.WebKnightModule,WebKnightModule"/>
</modules>
</system.webServer>
Then copy the WebKnight folder to the root of your website.
Machine node
If you want to add the module at the machine level (for all websites), install the Windows SDK and add the module to the GAC with gacutil.exe:
gacutil -i WebKnightModule.dll
and use IIS manager to add the module so the applicationHost.config looks like this:
<configuration>
<system.webServer>
<modules>
<add name="WebKnightModule"
type="WebKnightModule.WebKnightModule, WebKnightModule, Version=5.0.0.0, Culture=neutral, PublicKeyToken=80ce92dc93c8591b" />
</modules>
</system.webServer>
</configuration>
Then copy the WebKnight folder to the root of your C:\ drive.
Contact us
Contact us with the form below if you want to use our WebKnight.NET module.
| Published: 5/11/2025 | Document Type: General |
| Last modified: 12/06/2026 | Target: General |
| Visibility: Public | Language: English |
|