Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/toolgood/toolgood.sqlfirewall
SQL Firewall, Prevent SQL injection, 防sql注入
https://github.com/toolgood/toolgood.sqlfirewall
sql sql-injection
Last synced: about 1 month ago
JSON representation
SQL Firewall, Prevent SQL injection, 防sql注入
- Host: GitHub
- URL: https://github.com/toolgood/toolgood.sqlfirewall
- Owner: toolgood
- License: apache-2.0
- Created: 2024-06-21T06:31:42.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-22T01:20:46.000Z (5 months ago)
- Last Synced: 2024-09-23T11:38:22.497Z (about 2 months ago)
- Topics: sql, sql-injection
- Language: C#
- Homepage:
- Size: 41 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ToolGood.SQLFirewall
SQL Firewall:Prevent SQL injection, 防sql注入## Quick start 快速上手
``` csharp
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
最后`*`符为通配符