Dạng lỗi:
Code:
www.site.com/index?cat&vo=[SQLi]
Code:
http://www.frueauff.org/index.php?fuseaction=p0007.&mod=19
Soft mien phi ,hoc tap ,hack website,hack game,tai lieu aptech,du an,project thong tin dai hoc ,ung dung androind
www.site.com/index?cat&vo=[SQLi]
http://www.frueauff.org/index.php?fuseaction=p0007.&mod=19
www.site.com/index?cat&vo=[SQLi]
http://www.frueauff.org/index.php?fuseaction=p0007.&mod=19
www.site.com/index.php?fuseaction=p0004.&mod=[sqli]
http://www.frueauff.org/index.php?fuseaction=p0007.&mod=19
www.site.com/index.php?fuseaction=p0004.&mod=[sqli]
http://www.frueauff.org/index.php?fuseaction=p0007.&mod=19
using System;
using System.Web;
public class RewriteUrlClass : IHttpModule
{
#region IHttpModule Members
public void Dispose()
{
}
public void Init(HttpApplication context)
{
context.BeginRequest += Context_BeginRequest;
}
private static void Context_BeginRequest(object sender, EventArgs e)
{
HttpApplication httpApplication = (HttpApplication) sender;
string url = httpApplication.Request.RawUrl.ToLower();
// Nếu là Url ảo như sau"
if (url.Contains("/default.aspvn"))
{
// Thì Url thực mà Server cần xử lý là:
httpApplication.Context.RewritePath("Default.aspx");
}
// Nếu là Url ảo như sau"
if (url.Contains("/login.aspvn"))
{
// Thì Url thực mà Server cần xử lý là:
httpApplication.Context.RewritePath("Login.aspx");
}
// Tùy thuộc vào quy tắt Rewrite mà chúng ta xử lý.
// Một trong những cách hiệu quả nhất là dùng Regex Expression.
}
#endregion
}
<system.web>
<httpModules>
<!-- BEGIN: MY URL REWRITE -->
<addname="MyUrlRewriter"type="RewriteUrlClass"/>
<!-- END: MY URL REWRITE -->
</httpModules>
.
.
.
</system.web>