Configuring portal safe-redirect

Portal safe-redirect filters HTTP requests by HTTP request method, browser type (in HTTP User Agent), and destination URL, and redirects only the permitted HTTP requests. This reduces the risk that the portal Web server cannot respond to HTTP requests because of overload.

Table 8: Browser types supported by portal safe-redirect

Browser type

Description

Safari

Apple browser

Chrome

Google browser

Firefox

Firefox browser

UC

UC browser

QQBrowser

QQ browser

LBBROWSER

Cheetah browser

TaoBrowser

Taobao browser

Maxthon

Maxthon browser

BIDUBrowser

Baidu browser

MSIE 10.0

Microsoft IE 10.0 browser

MSIE 9.0

Microsoft IE 9.0 browser

MSIE 8.0

Microsoft IE 8.0 browser

MSIE 7.0

Microsoft IE 7.0 browser

MSIE 6.0

Microsoft IE 6.0 browser

MetaSr

Sogou browser

To configure portal safe-redirect:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enable portal safe-redirect.

portal safe-redirect enable

By default, the portal safe-redirect feature is disabled.

3. Specify HTTP request methods permitted by portal safe-redirect.

portal safe-redirect method { get | post } *

By default, the device can redirect only HTTP requests with GET method after portal safe-redirect is enabled.

4. Specify a browser type permitted by portal safe-redirect.

portal safe-redirect user-agent user-agent-string

By default, no browser types are specified. The device can redirect HTTP requests sent by all supported browsers (see Table 8) after portal safe-redirect is enabled.

5. Configure a URL forbidden by portal safe-redirect.

portal safe-redirect forbidden-url user-url-string

By default, no forbidden URLs are configured. The device can redirect HTTP requests with any URLs.