cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
566
Views
0
Helpful
1
Replies

Regular Expression Question for blocking and redirecting

l8nite4me2
Level 1
Level 1

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

Kureli Sankar
Cisco Employee
Cisco Employee

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

View solution in original post

1 Reply 1

Kureli Sankar
Cisco Employee
Cisco Employee

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card