差異處
這裏顯示兩個版本的差異處。
| a10:slb:aflex:http:fqdn-protect [2014/04/24 16:54] – 建立 jal | a10:slb:aflex:http:fqdn-protect [2014/04/24 16:55] (目前版本) – 移除 jal | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | ====== HTTP Protocol Validation ====== | ||
| - | * Only accept right FDQN request, otherwise deny or redirect it to portect your real server. | ||
| - | * Useful to clean HTTP (port 80) robot scan. | ||
| - | * Deny not acceptable HTTP method | ||
| - | * Deny incorrect HTTP version | ||
| - | |||
| - | ===== Requirement ===== | ||
| - | * Service Type: HTTP / HTTPS | ||
| - | |||
| - | ===== Code ===== | ||
| - | <code tcl> | ||
| - | when HTTP_REQUEST { | ||
| - | # Check method first. | ||
| - | if { [HTTP:: | ||
| - | # do nothing | ||
| - | } else { | ||
| - | HTTP:: | ||
| - | } | ||
| - | |||
| - | # Check HTTP version. | ||
| - | if { [HTTP:: | ||
| - | # do nothing | ||
| - | } else { | ||
| - | HTTP:: | ||
| - | } | ||
| - | |||
| - | # Check FQDN. | ||
| - | if { [string tolower [HTTP:: | ||
| - | # use specify service group | ||
| - | pool www_service_group | ||
| - | } elseif { [string tolower [HTTP:: | ||
| - | # do nothing use default service group. | ||
| - | } else { | ||
| - | HTTP:: | ||
| - | } | ||
| - | } | ||
| - | </ | ||