mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 13:10:24 +08:00 
			
		
		
		
	将WAF checkpoint中名称和描述部分的Header改为“报头”
This commit is contained in:
		@@ -8,17 +8,17 @@ import (
 | 
				
			|||||||
// AllCheckpoints all check points list
 | 
					// AllCheckpoints all check points list
 | 
				
			||||||
var AllCheckpoints = []*HTTPFirewallCheckpointDefinition{
 | 
					var AllCheckpoints = []*HTTPFirewallCheckpointDefinition{
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		Name:        "通用请求Header长度限制",
 | 
							Name:        "通用请求报头长度限制",
 | 
				
			||||||
		Prefix:      "requestGeneralHeaderLength",
 | 
							Prefix:      "requestGeneralHeaderLength",
 | 
				
			||||||
		Description: "通用Header比如Cache-Control、Accept之类的长度限制,防止缓冲区溢出攻击。",
 | 
							Description: "通用报头比如Cache-Control、Accept之类的长度限制,防止缓冲区溢出攻击。",
 | 
				
			||||||
		IsRequest:   true,
 | 
							IsRequest:   true,
 | 
				
			||||||
		IsComposed:  true,
 | 
							IsComposed:  true,
 | 
				
			||||||
		Priority:    100,
 | 
							Priority:    100,
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		Name:        "通用响应Header长度限制",
 | 
							Name:        "通用响应报头长度限制",
 | 
				
			||||||
		Prefix:      "responseGeneralHeaderLength",
 | 
							Prefix:      "responseGeneralHeaderLength",
 | 
				
			||||||
		Description: "通用Header比如Cache-Control、Date之类的长度限制,防止缓冲区溢出攻击。",
 | 
							Description: "通用报头比如Cache-Control、Date之类的长度限制,防止缓冲区溢出攻击。",
 | 
				
			||||||
		IsRequest:   false,
 | 
							IsRequest:   false,
 | 
				
			||||||
		IsComposed:  true,
 | 
							IsComposed:  true,
 | 
				
			||||||
		Priority:    100,
 | 
							Priority:    100,
 | 
				
			||||||
@@ -26,7 +26,7 @@ var AllCheckpoints = []*HTTPFirewallCheckpointDefinition{
 | 
				
			|||||||
	{
 | 
						{
 | 
				
			||||||
		Name:        "客户端地址(IP)",
 | 
							Name:        "客户端地址(IP)",
 | 
				
			||||||
		Prefix:      "remoteAddr",
 | 
							Prefix:      "remoteAddr",
 | 
				
			||||||
		Description: "试图通过分析X-Forwarded-For等Header获取的客户端地址,比如192.168.1.100,存在伪造的可能。",
 | 
							Description: "试图通过分析X-Forwarded-For等报头获取的客户端地址,比如192.168.1.100,存在伪造的可能。",
 | 
				
			||||||
		IsRequest:   true,
 | 
							IsRequest:   true,
 | 
				
			||||||
		Priority:    100,
 | 
							Priority:    100,
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
@@ -75,7 +75,7 @@ var AllCheckpoints = []*HTTPFirewallCheckpointDefinition{
 | 
				
			|||||||
	{
 | 
						{
 | 
				
			||||||
		Name:        "请求内容长度",
 | 
							Name:        "请求内容长度",
 | 
				
			||||||
		Prefix:      "requestLength",
 | 
							Prefix:      "requestLength",
 | 
				
			||||||
		Description: "请求Header中的Content-Length。",
 | 
							Description: "请求报头中的Content-Length。",
 | 
				
			||||||
		IsRequest:   true,
 | 
							IsRequest:   true,
 | 
				
			||||||
		Priority:    100,
 | 
							Priority:    100,
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
@@ -170,7 +170,7 @@ var AllCheckpoints = []*HTTPFirewallCheckpointDefinition{
 | 
				
			|||||||
	{
 | 
						{
 | 
				
			||||||
		Name:        "请求来源URL",
 | 
							Name:        "请求来源URL",
 | 
				
			||||||
		Prefix:      "referer",
 | 
							Prefix:      "referer",
 | 
				
			||||||
		Description: "请求Header中的Referer值。",
 | 
							Description: "请求报头中的Referer值。",
 | 
				
			||||||
		IsRequest:   true,
 | 
							IsRequest:   true,
 | 
				
			||||||
		Priority:    100,
 | 
							Priority:    100,
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
@@ -184,7 +184,7 @@ var AllCheckpoints = []*HTTPFirewallCheckpointDefinition{
 | 
				
			|||||||
	{
 | 
						{
 | 
				
			||||||
		Name:        "内容类型",
 | 
							Name:        "内容类型",
 | 
				
			||||||
		Prefix:      "contentType",
 | 
							Prefix:      "contentType",
 | 
				
			||||||
		Description: "请求Header的Content-Type。",
 | 
							Description: "请求报头的Content-Type。",
 | 
				
			||||||
		IsRequest:   true,
 | 
							IsRequest:   true,
 | 
				
			||||||
		Priority:    100,
 | 
							Priority:    100,
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
@@ -219,16 +219,16 @@ var AllCheckpoints = []*HTTPFirewallCheckpointDefinition{
 | 
				
			|||||||
		Priority:    100,
 | 
							Priority:    100,
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		Name:        "所有Header信息",
 | 
							Name:        "所有报头信息",
 | 
				
			||||||
		Prefix:      "headers",
 | 
							Prefix:      "headers",
 | 
				
			||||||
		Description: "使用换行符(\\n)隔开的Header信息字符串,每行均为\"NAME: VALUE格式\"。",
 | 
							Description: "使用换行符(\\n)隔开的报头信息字符串,每行均为\"NAME: VALUE格式\"。",
 | 
				
			||||||
		IsRequest:   true,
 | 
							IsRequest:   true,
 | 
				
			||||||
		Priority:    100,
 | 
							Priority:    100,
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		Name:        "单个Header值",
 | 
							Name:        "单个报头值",
 | 
				
			||||||
		Prefix:      "header",
 | 
							Prefix:      "header",
 | 
				
			||||||
		Description: "单个Header值。",
 | 
							Description: "单个报头值。",
 | 
				
			||||||
		IsRequest:   true,
 | 
							IsRequest:   true,
 | 
				
			||||||
		HasParams:   true,
 | 
							HasParams:   true,
 | 
				
			||||||
		Priority:    100,
 | 
							Priority:    100,
 | 
				
			||||||
@@ -371,9 +371,9 @@ var AllCheckpoints = []*HTTPFirewallCheckpointDefinition{
 | 
				
			|||||||
		Priority:    100,
 | 
							Priority:    100,
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		Name:        "响应Header",
 | 
							Name:        "响应报头",
 | 
				
			||||||
		Prefix:      "responseHeader",
 | 
							Prefix:      "responseHeader",
 | 
				
			||||||
		Description: "响应Header值。",
 | 
							Description: "响应报头值。",
 | 
				
			||||||
		IsRequest:   false,
 | 
							IsRequest:   false,
 | 
				
			||||||
		HasParams:   true,
 | 
							HasParams:   true,
 | 
				
			||||||
		Priority:    100,
 | 
							Priority:    100,
 | 
				
			||||||
@@ -388,7 +388,7 @@ var AllCheckpoints = []*HTTPFirewallCheckpointDefinition{
 | 
				
			|||||||
	{
 | 
						{
 | 
				
			||||||
		Name:        "响应内容长度",
 | 
							Name:        "响应内容长度",
 | 
				
			||||||
		Prefix:      "bytesSent",
 | 
							Prefix:      "bytesSent",
 | 
				
			||||||
		Description: "响应内容长度,通过响应的Header Content-Length获取。",
 | 
							Description: "响应内容长度,通过响应的报头Content-Length获取。",
 | 
				
			||||||
		IsRequest:   false,
 | 
							IsRequest:   false,
 | 
				
			||||||
		Priority:    100,
 | 
							Priority:    100,
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user