<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Regular Expression Question for blocking and redirecting in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/regular-expression-question-for-blocking-and-redirecting/m-p/1355068#M735763</link>
    <description>&lt;P&gt;I am currently using regular expression to block certain websites.&amp;nbsp; I have two questions about this.&amp;nbsp; My regular expressions are working fine, what I would like to know is if I can have more than value defined in each expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currently I have blockedsite1 ---&amp;gt; facebook\.com, blockedsite2 --&amp;gt;myspace\.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to combine them into one such as (I know the syntax is not correct) blockedsite1 --&amp;gt; facebook\.com;myspace\.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second question.&amp;nbsp; Is there a way in the regex to define a redirect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp; A user hits facebook.com.&amp;nbsp; Can the regex or another rule based off the regex redirect the user to our corporate website.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;l8nite&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2019 17:18:15 GMT</pubDate>
    <dc:creator>l8nite4me2</dc:creator>
    <dc:date>2019-03-11T17:18:15Z</dc:date>
    <item>
      <title>Regular Expression Question for blocking and redirecting</title>
      <link>https://community.cisco.com/t5/network-security/regular-expression-question-for-blocking-and-redirecting/m-p/1355068#M735763</link>
      <description>&lt;P&gt;I am currently using regular expression to block certain websites.&amp;nbsp; I have two questions about this.&amp;nbsp; My regular expressions are working fine, what I would like to know is if I can have more than value defined in each expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currently I have blockedsite1 ---&amp;gt; facebook\.com, blockedsite2 --&amp;gt;myspace\.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to combine them into one such as (I know the syntax is not correct) blockedsite1 --&amp;gt; facebook\.com;myspace\.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second question.&amp;nbsp; Is there a way in the regex to define a redirect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp; A user hits facebook.com.&amp;nbsp; Can the regex or another rule based off the regex redirect the user to our corporate website.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;l8nite&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 17:18:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regular-expression-question-for-blocking-and-redirecting/m-p/1355068#M735763</guid>
      <dc:creator>l8nite4me2</dc:creator>
      <dc:date>2019-03-11T17:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Regular Expression Question for blocking and redirecting</title>
      <link>https://community.cisco.com/t5/network-security/regular-expression-question-for-blocking-and-redirecting/m-p/1355069#M735764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure if either of them is possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. refer this link: &lt;SPAN&gt; &lt;/SPAN&gt;&lt;A class="jive-link-external-small active_link" href="https://community.cisco.com/docs/DOC-1268"&gt;http://supportforums.cisco.com/docs/DOC-1268&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;regex command reference: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.cisco.com/en/US/docs/security/asa/asa82/command/reference/qr.html#wp1788742"&gt;http://www.cisco.com/en/US/docs/security/asa/asa82/command/reference/qr.html#wp1788742&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" id="wp1788843table1788838" width="80%"&gt;&lt;TBODY&gt;&lt;TR align="left" valign="top"&gt;&lt;SPAN class="content"&gt;&lt;/SPAN&gt;&lt;TD&gt;&lt;P class="pB1_Body1"&gt;&lt;STRONG class="cBold"&gt;|&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;A name="wp1788870"&gt;&lt;/A&gt;&lt;P class="pB1_Body1"&gt;Alternation&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;A name="wp1788872"&gt;&lt;/A&gt;&lt;P class="pB1_Body1"&gt;Matches either expression it separates. For example, &lt;STRONG class="cBold"&gt;dog|cat&lt;/STRONG&gt; matches dog or cat.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See if you can use the above metacharacter and see if you can do what you are looking to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-KS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Mar 2010 23:50:38 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regular-expression-question-for-blocking-and-redirecting/m-p/1355069#M735764</guid>
      <dc:creator>Kureli Sankar</dc:creator>
      <dc:date>2010-03-05T23:50:38Z</dc:date>
    </item>
  </channel>
</rss>

