The http x-online-host check command enables detection of the X-Online-Host field in HTTP packets.
The undo http x-online-host check command disables detection of the X-Online-Host field in HTTP packets.
http x-online-host check { any | blacklist | multiple } action { alert | block }
undo http x-online-host check
| Parameter | Description | Value |
|---|---|---|
any |
When an HTTP packet contains the X-Online-Host field, an anomaly is detected. |
- |
blacklist |
Detects whether the domain name or IP address in an X-Online-Host field matches the blacklist. If yes, an anomaly is detected. |
- |
multiple |
When an HTTP packet contains two or more X-Online-Host fields, an anomaly is detected. |
- |
action |
Specifies the action. |
- |
alert |
When the X-Online-Host field in an HTTP packet is abnormal, the packet is permitted, and a log is recorded. |
- |
block |
When the X-Online-Host field in an HTTP packet is abnormal, the packet is blocked, and a log is recorded. |
- |
If you have configured the detection of whether the domain name or IP address in the X-Online-Host field matches a blacklist (blacklist), you need also to run the http x-online-host blacklist command to configure such a blacklist.
By default, this function is disabled.