Specifies the action to take for the indicated result after content
filtering analysis.
Privilege
Security Administrator, Administrator
Mode
Exec > ACS Configuration > CFP Configuration
active-charging service
service_name
> content-filtering category policy-id
cf_policy_id
Entering the above command sequence results in the following prompt:
[local]host_name(config-acs-content-filtering-policy)#
Syntax
Syntax Description
In 12.2 and later releases:
analyze priority priority { all | category category | x-category string } action { allow | content-insert content_string | discard | redirect-url url | terminate-flow | www-reply-code-and-terminate-flow reply_code } [ reporting-edr reporting_edr_format_name ]
no analyze priority priority
In 12.1 and earlier releases:
analyze priority priority { all | category category | x-category string } action { allow | content-insert content_string | discard | redirect-url url | terminate-flow | www-reply-code-and-terminate-flow reply_code } [ edr edr_format_name ]
no analyze priority priority
no
Removes the specified analyze priority configuration.
priority
priority
Specifies the precedence of a category in the content filtering
policy.
priority must be an integer from 1 to 65535
that is unique in the content filtering policy.
all
Specifies the default action to take if the category returned after
rating is not configured in the subscriber's content filtering policy. This has
the lowest priority.
category
category
Specifies the category.
category must be one of the following.
-
ABOR
-
ADULT
-
ADVERT
-
ANON
-
ART
-
AUTO
-
BACKUP
-
BLACK
-
BLOG
-
BUSI
-
CAR
-
CDN
-
CHAT
-
CMC
-
CRIME
-
CULT
-
DRUG
-
DYNAM
-
EDU
-
ENERGY
-
ENT
-
FIN
-
FORUM
-
GAMB
-
GAME
-
GLAM
-
GOVERN
-
HACK
-
HATE
-
HEALTH
-
HOBBY
-
HOSTS
-
KIDS
-
LEGAL
-
LIFES
-
MAIL
-
MIL
-
NEWS
-
OCCULT
-
PEER
-
PERS
-
PHOTO
-
PLAG
-
POLTIC
-
PORN
-
PORTAL
-
PROXY
-
REF
-
REL
-
SCI
-
SEARCH
-
SHOP
-
SPORT
-
STREAM
-
SUIC
-
SXED
-
TECH
-
TRAV
-
VIOL
-
VOIP
-
WEAP
-
WHITE
-
UNKNOW
Important:
Content can simultaneously match multiple categories, therefore
specific
priority must be used for required
evaluation precedence.
x-category
string
This keyword can be used to configure runtime categories not present
in the CLI.
string specifies the unclassified category
to be rated, and must be an alphanumeric string of 1 through 6 characters.
A maximum of 10 x-categories can be configured.
action { allow | content-insert
content_string
| discard | redirect-url
url
| terminate-flow |
www-reply-code-and-terminate-flow
reply_code
}
Specifies the action to take for the indicated result of content
filtering analysis.
allow: With static content filtering, this
option allows the request for content. In dynamic content filtering it allows
the content itself.
content-insert
content_string: Specifies the
content string to be inserted in place of the message returned from
prohibited/restricted site or content server.
For static content filtering,
content_string is used to create a response
to the subscriber's attempt to get content. In dynamic content filtering, it is
used to replace the content returned by a server.
content_string must be an alphanumeric
string of 1 through 1023 characters.
discard: For static content filtering, this
option discards the packet(s) that requested. In dynamic content filtering, it
discards the packet(s) that contain(s) the content.
redirect-url
url: Redirects the subscriber
to the specified URL.
url must be an alphanumeric string of 1
through 1023 characters in the
http://search.com/subtarg=#HTTP.URL# format.
terminate-flow: Terminates the TCP
connection gracefully between the subscriber and server, and sends a TCP FIN to
the subscriber and a TCP RST to the server.
www-reply-code-and-terminate-flow
reply_code: Terminates the
flow with the specified reply code.
reply_code must be a reply code that is an
integer from 100 through 599.
Important:
Static-and-Dynamic Content Filtering is only supported in 9.0 and
later releases.
edr
edr_format_name
Important:
This option is available only in 12.1 and earlier releases. In 12.2
and later releases, it is deprecated and replaced by the
reporting-edr option.
Generates separate EDRs for content filtering based on action and
content category using a specified EDR file format name.
edr_format_name is the name of a pre-defined
EDR file format name in the EDR Format Configuration Mode, and must be an
alphanumeric string of 1 through 63 characters.
Important:
EDRs generated through this keyword are different from charging EDRs
generated for subscriber accounting and billing. For more information on
generation of charging EDRs, refer to the
ACS Rulebase Configuration Mode Commands chapter.
reporting-edr
reporting_edr_format_name
Important:
This option is available only in 12.2 and later releases.
Generates separate reporting EDRs for Content Filtering based on the
action and content category using the specified EDR file format name.
reporting_edr_format_name must be an
alphanumeric string of 1 through 63 characters.
Usage Guidelines
Use this command to specify the action and priorities for the
indicated result of content filtering analysis.
Up to 64 priorities and actions can be entered with this command.
Examples
The following command sets priority
10 for category
ADULT with action as
terminate-flow:
analyze priority 10 category ADULT action terminate-flow