Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Regular Expression Question for blocking and redirecting

I am currently using regular expression to block certain websites.  I have two questions about this.  My regular expressions are working fine, what I would like to know is if I can have more than value defined in each expression.

Example

currently I have blockedsite1 ---> facebook\.com, blockedsite2 -->myspace\.com

Is there a way to combine them into one such as (I know the syntax is not correct) blockedsite1 --> facebook\.com;myspace\.com

Second question.  Is there a way in the regex to define a redirect.

Example:  A user hits facebook.com.  Can the regex or another rule based off the regex redirect the user to our corporate website.

Thanks in Advance

l8nite

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Regular Expression Question for blocking and redirecting

I am not sure if either of them is possible.

Pls. refer this link: http://supportforums.cisco.com/docs/DOC-1268

regex command reference: http://www.cisco.com/en/US/docs/security/asa/asa82/command/reference/qr.html#wp1788742

|

Alternation

Matches either expression it separates. For example, dog|cat matches dog or cat.

See if you can use the above metacharacter and see if you can do what you are looking to do.

-KS

1 REPLY
Cisco Employee

Re: Regular Expression Question for blocking and redirecting

I am not sure if either of them is possible.

Pls. refer this link: http://supportforums.cisco.com/docs/DOC-1268

regex command reference: http://www.cisco.com/en/US/docs/security/asa/asa82/command/reference/qr.html#wp1788742

|

Alternation

Matches either expression it separates. For example, dog|cat matches dog or cat.

See if you can use the above metacharacter and see if you can do what you are looking to do.

-KS

262
Views
0
Helpful
1
Replies