The portal https-redirect blacklist packet-rate command configures the maximum rate at which a Portal user accesses an address through HTTPS. If the user access rate reaches the maximum, the switch adds the destination address to the HTTPS redirection blacklist.
The undo portal https-redirect blacklist packet-rate command restores the default maximum rate at which a Portal user accesses an address through HTTPS.
By default, the maximum rate at which a Portal user accesses an address through HTTPS is 40 times per minute.
portal https-redirect blacklist packet-rate packet-rate
undo portal https-redirect blacklist packet-rate
Parameter | Description | Value |
---|---|---|
packet-rate | Specifies the maximum rate at which a Portal user accesses an address through HTTPS. | The value is an integer in the range from 5 to 600, in times per minutes. The default value is 40. |
Usage Scenario
Before Portal users are authenticated, the switch redirects the HTTP or HTTPS requests sent from clients to the Portal login page. When the rate of packets sent from a Portal user for accessing an address through HTTPS reaches the maximum rate specified by the portal https-redirect blacklist packet-rate command, the switch adds the destination address to the HTTPS redirection blacklist. This prevents repeated HTTPS redirection caused by frequent access from malicious users to an address, and therefore saves resources of the switch.
Prerequisites
The function of inserting a JavaScript file during Portal redirection has been enabled using the portal redirect js enable command.
Precautions
This command takes effect only for the HTTPS protocol.
For the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735S-S, S5735-S-I, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S, this command takes effect for both IPv4 and IPv6 addresses; for other models, this command takes effect only for IPv4 addresses.