03-05-2010 11:47 AM - edited 03-11-2019 10:18 AM
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
Solved! Go to Solution.
03-05-2010 03:50 PM
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
03-05-2010 03:50 PM
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
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: