user-agent-blacklist

Creates and updates the user agent blacklisted configuration.
Syntax
user-agent-blacklistname
no user-agent-blacklistname

After the user-agent-blacklist command is entered with an associated user name to enter user agent blacklist configuration mode, the following configuration syntax is available:

{errorerror-code|error-messagemsg|nameagent-name|patternagent-pattern}
Command Default

No user agent is blacklisted.

Parameters
name
Name of the blacklist to be configured.
errorerror-code
Sets the error code to be displayed. The range is from 400 to 599.
error-messagemsg
Sets the error message to be displayed.
nameagent-name
Specifies a user agent name to be blacklisted.
patternagent-pattern
Sets the pattern to be used.
Modes

Global configuration mode

Usage Guidelines

Use the no form of the command to delete the specified user agent blacklist.

Examples

The following example creates a user agent blacklist named blist1 and specifies the name of the agent to be blacklisted and the error code to be displayed.

device# config
device(config)# user-agent-blacklist agent1 
device(config-user-agent-blacklist)# name agent1
device(config-user-agent-blacklist)# error 450