configure

filter-action < block log block-and-log >

specifies the actions that occur when a web request is filtered. The device can block web requests, log them in the device’s system log, or both block and log them. Filtering actions apply to both the filtering service and manual filtering mode.

filter-service cache configures the web filter cache.

expiry hours

configures the number of hours that the web filter cache will retain web pages.

size bytes

configures the size of the web filter cache in bytes.

filter-service < enable disable >

enables the subscription-based Content Filter Service.

filter-service < permit block > category-namepermits or blocks a Content Filtering Service category.

filter-service server < america europe1 europe2 asia address address > specifies the content filtering server that will provide the Content Filter Service.

manual-filter < add remove > < permit block >

<string regexp > string-or-expression

configures the manual filter. You can add or remove, a combination of URLs, domain names, IP addresses, keywords, and regular expressions to determine which web requests are permitted or blocked.

 

manual-filter < enable disable >

 

enables or disables manual filtering.

 

 

 

Using conf t web-filtering

add a manual

Use configure terminal content-filtering manual-filter add permit to add a manual web filtering

filtering rule

rule. In this example, URLs containing the string google are permitted:

 

hostname# conf t web-filtering manual-filter add permit string google

delete a

Use configure terminal content-filtering manual-filter remove to delete a manual filtering rule. In

manual

this example, the rule created in the example above is removed:

filtering rule

 

 

hostname# conf t web-filtering manual-filter remove permit string google

permit a

Use configure terminal content-filtering filter-service to permit or block categories in the Content

category

Filtering Service. In this example, all web sites and domains in the gambling category are permitted:

 

hostname# conf t web-filtering filter-service permit gambling

X Family CLI Reference V 2.5.1

79