299
Syntax
portal safe-redirect enable
undo portal safe-redirect enable
Default
The portal safe-redirect feature is disabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
Portal redirects all HTTP requests except HTTP requests that match portal-free rules to the portal
Web server, which might overload the server.
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.
As a best practice to avoid server overload and improve security, enable portal safe-redirect on the
device.
Examples
# Enable the portal safe-redirect feature.
<Sysname> system-view
[Sysname] portal safe-redirect enable
Related commands
portal safe-redirect forbidden-url
portal safe-redirect method
portal safe-redirect user-agent
portal safe-redirect forbidden-url
Use
portal safe-redirect forbidden-url
to configure a URL forbidden by portal safe-redirect.
Use
undo portal safe-redirect forbidden-url
to delete a portal safe-redirect forbidden URL.
Syntax
portal safe-redirect forbidden-url
user-url-string
undo portal safe-redirect forbidden-url
user-url-string
Default
No forbidden URLs are configured. The device can redirect HTTP requests with any URLs.
Views
System view
Predefined user roles
network-admin
Parameters
user-url-string
: Specifies a URL forbidden by portal safe-redirect, a case sensitive string of 1 to 256
characters.