< Home

web-proxy rewrite-rule

Function

The web-proxy rewrite-rule command adds a customized rewriting rule for web proxy.

The undo web-proxy rewrite-rule command deletes a customized rewriting rule for web proxy.

Format

web-proxy rewrite-rule [ object object-name ] property property-name

undo web-proxy rewrite-rule [ object object-name ] property property-name

Parameters

Parameter Description Value
object object-name Specifies the name of the HTML object to be rewritten. The value is a string of 1 to 31 case-sensitive characters.
property property-name Specifies an HTML property to be rewritten. The value is a string of 1 to 31 case-sensitive characters.

Views

Function service view

Default Level

2: Configuration level

Usage Guidelines

Only the USG6510E/6510E-POE/6530E does not support this command.

After a rule is added, the virtual gateway rewrites the value of a specified property in a specified HTML object. For example, if you run the web-proxy rewrite-rule object area property href command for the following HTML codes, the virtual gateway rewrites www.example.com.

<area shape="rect" coords="667,3,754,22" href="www.example.com">

Example

# Add a web proxy rewriting rule to virtual gateway gateway to rewrite the value of property href in object area.

<sysname> system-view
[sysname] v-gateway gateway
[sysname-gateway] service
[sysname-gateway-service] web-proxy rewrite-rule object area property href
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >