No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fat AP and Cloud AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
add referer-host

add referer-host

Function

The add referer-host command adds referer-host rules to a URL filtering profile.

The undo add referer-host command deletes referer-host rules from a URL filtering profile.

Format

add referer-host host-text

undo add referer-host { host-text | all }

Parameters

Parameter Description Value
host-text Specify a host rule.

The value is a string of 4 to 255 characters, without /, \, #, ", ?, or spaces.

all Indicates all host rules. -

Views

URL filtering profile view

Default Level

2: Configuration level

Usage Guidelines

If only the whitelist is configured during the access to a specific web page, other links on the specified web page may fail to be accessed. For example: If only the whitelist rule www.example.com is configured during the access to the www.example.com web page, other links that do not use www.example.com as the domain name are inaccessible. To solve the preceding problem, you can run this command to add the referer-host rule to the URL filtering profile. The referer field in an HTTP request will be matched with the referer-host rule. If a match is found, the URL request is allowed. If the referer field in the HTTP request does not match the configured referer-host rule, the user can determine whether to match the referer field with all whitelist rules.
  • When the function of matching the referer field in a URL request with whitelist rules is enabled, the referer field will be matched with all whitelist rules. If a match is found, the URL request is allowed.
  • When the function of matching the referer field with whitelist rules is disabled, the referer field will not be matched with all whitelist rules.

By default, the function of matching the referer field in a URL request with whitelist rules is enabled. If the function is disabled, you can run the undo referer-filter whitelist-all enable command to disable it.

The referer field is a part of an HTTP header. A browser adds the referer field to an HTTP request before sending it to a web server, so that the web server can understand the link of the web.

Example

# Create URL filtering profile profile_development, and add www.example.com to the referer-host rule.

<Huawei> system-view
[Huawei] profile type url-filter name profile_development
[Huawei-profile-url-filter-profile_development] add referer-host www.example.com
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 202270

Downloads: 122

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next