<?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 Re: Regex expression to block certain URL's. in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/regex-expression-to-block-certain-url-s/m-p/2148181#M356691</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please paste your complete filtering-config. And be aware that it can't work if you access the site with HTTPS. Are you an the ASA or on an IOS-router?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sent from Cisco Technical Support iPad App&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Feb 2013 07:23:04 GMT</pubDate>
    <dc:creator>Karsten Iwen</dc:creator>
    <dc:date>2013-02-13T07:23:04Z</dc:date>
    <item>
      <title>Regex expression to block certain URL's.</title>
      <link>https://community.cisco.com/t5/network-security/regex-expression-to-block-certain-url-s/m-p/2148180#M356690</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to block certain URL paths within a website. For example I would want to block any request to &lt;A href="https://community.cisco.com/www.asdf.com/test/input.asp" target="_blank"&gt;www.asdf.com/test/input.asp&lt;/A&gt;, other request like &lt;A href="https://community.cisco.com/www.asdf.com" target="_blank"&gt;www.asdf.com&lt;/A&gt; should be accepted.&lt;/P&gt;&lt;P&gt;I tried building a regex to match test/input.asp and the regex test says match succeeded, however after applying it via service policy the URL still works. The following regex has been applied to match test/input.asp &lt;/P&gt;&lt;P&gt;.+\/test\/input\.asp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where could I be wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 01:00:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-expression-to-block-certain-url-s/m-p/2148180#M356690</guid>
      <dc:creator>Sundeep Dsouza</dc:creator>
      <dc:date>2019-03-12T01:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Regex expression to block certain URL's.</title>
      <link>https://community.cisco.com/t5/network-security/regex-expression-to-block-certain-url-s/m-p/2148181#M356691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please paste your complete filtering-config. And be aware that it can't work if you access the site with HTTPS. Are you an the ASA or on an IOS-router?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sent from Cisco Technical Support iPad App&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 07:23:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-expression-to-block-certain-url-s/m-p/2148181#M356691</guid>
      <dc:creator>Karsten Iwen</dc:creator>
      <dc:date>2013-02-13T07:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Regex expression to block certain URL's.</title>
      <link>https://community.cisco.com/t5/network-security/regex-expression-to-block-certain-url-s/m-p/2148182#M356692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karsten,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The filtering config reads like the following:&lt;/P&gt;&lt;P&gt;regex Block-test ".+\/test\/input\.asp"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;access-list outside_mpc extended permit ip any host 2.2.2.2&lt;/P&gt;&lt;P&gt;class-map outside-class&lt;/P&gt;&lt;P&gt; match access-list outside_mpc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;policy-map type inspect http Block-test&lt;/P&gt;&lt;P&gt; parameters&lt;/P&gt;&lt;P&gt; match request uri regex Block-test&lt;/P&gt;&lt;P&gt;&amp;nbsp; drop-connection log&lt;/P&gt;&lt;P&gt;policy-map outside-policy&lt;/P&gt;&lt;P&gt; class outside-class&lt;/P&gt;&lt;P&gt;&amp;nbsp; inspect http Block-test&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;service-policy outside-policy interface outside&lt;/P&gt;&lt;P&gt;Its not an https connection and the configuration is on the ASA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 07:50:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-expression-to-block-certain-url-s/m-p/2148182#M356692</guid>
      <dc:creator>Sundeep Dsouza</dc:creator>
      <dc:date>2013-02-13T07:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Regex expression to block certain URL's.</title>
      <link>https://community.cisco.com/t5/network-security/regex-expression-to-block-certain-url-s/m-p/2148183#M356693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your regex has to be the following:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;regex Block-test "\/test\/input\.asp"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The URI doesn't include the fqdn. So there is nothing to match before the "/test ..."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And is your asa on version &amp;lt;= 8.2? If not the IP in the ACL has to be the real IP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;nbsp; &lt;BR /&gt;Don't stop after you've improved your network! Improve the world by lending money to the working poor: &lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://www.kiva.org/invitedby/karsteni" rel="nofollow"&gt;http://www.kiva.org/invitedby/karsteni&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 08:32:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-expression-to-block-certain-url-s/m-p/2148183#M356693</guid>
      <dc:creator>Karsten Iwen</dc:creator>
      <dc:date>2013-02-13T08:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Regex expression to block certain URL's.</title>
      <link>https://community.cisco.com/t5/network-security/regex-expression-to-block-certain-url-s/m-p/2148184#M356694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked, thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2013 09:19:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/regex-expression-to-block-certain-url-s/m-p/2148184#M356694</guid>
      <dc:creator>Sundeep Dsouza</dc:creator>
      <dc:date>2013-02-13T09:19:19Z</dc:date>
    </item>
  </channel>
</rss>

