Skip to content

toolgood/ToolGood.SQLFirewall

Repository files navigation

ToolGood.SQLFirewall

SQL Firewall:Prevent SQL injection, 防sql注入

Quick start 快速上手

using ToolGood.SQLFirewall;

    public class Program
    {
        public static void Main(string[] args)
        {
            var builder = WebApplication.CreateBuilder(args);
            ...

            var app = builder.Build();
            app.UseSQLFirewall_ServerHeader("ToolGood");
            app.UseSQLFirewall(SQLFirewallType.MsSQL);
            // set ignore Urls 设置忽略网址
            // app.UseSQLFirewall(SQLFirewallType.MsSQL, "/Admins/Logs/Ajax/GetLoginList", "/Admins/User/Ajax/*"); 
            
            ...
            app.Run();
        }
    }

NOTE 注意

The last * character is a wildcard character

最后*符为通配符

About

SQL Firewall, Prevent SQL injection, 防sql注入

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy