<?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 What expression to use to block/permit an entire website? in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/what-expression-to-use-to-block-permit-an-entire-website/m-p/524473#M108513</link>
    <description>&lt;P&gt;I'm having trouble figuring out what expression to use(in a Custom URL Category) to match any variation of HTTP requests for an entire website.&amp;nbsp; For example, I want a single expression to be able to match/block/permit the following HTTP requests...&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;example.com/&lt;/LI&gt;
&lt;LI&gt;example.com/path&lt;/LI&gt;
&lt;LI&gt;abc.example.com/&lt;/LI&gt;
&lt;LI&gt;abc.example.com/path&lt;/LI&gt;
&lt;LI&gt;xyz.abc.example.com/&lt;/LI&gt;
&lt;LI&gt;xyc.abc.example.com/path&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So far I've only been able to match all of the above by using 2 expressions in the Custom URL Category...&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;EXAMPLE.COM/ - This will permit example.com/ and any path after it.&amp;nbsp; Will not permit any subdomains.&lt;/LI&gt;
&lt;LI&gt;*.EXAMPLE.COM/ - Will permit abc.example.com/ and any path after it.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone know of a way to match an entire website using a single expression?&lt;/P&gt;</description>
    <pubDate>Mon, 19 Dec 2022 16:46:52 GMT</pubDate>
    <dc:creator>jambulo</dc:creator>
    <dc:date>2022-12-19T16:46:52Z</dc:date>
    <item>
      <title>What expression to use to block/permit an entire website?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/what-expression-to-use-to-block-permit-an-entire-website/m-p/524473#M108513</link>
      <description>&lt;P&gt;I'm having trouble figuring out what expression to use(in a Custom URL Category) to match any variation of HTTP requests for an entire website.&amp;nbsp; For example, I want a single expression to be able to match/block/permit the following HTTP requests...&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;example.com/&lt;/LI&gt;
&lt;LI&gt;example.com/path&lt;/LI&gt;
&lt;LI&gt;abc.example.com/&lt;/LI&gt;
&lt;LI&gt;abc.example.com/path&lt;/LI&gt;
&lt;LI&gt;xyz.abc.example.com/&lt;/LI&gt;
&lt;LI&gt;xyc.abc.example.com/path&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So far I've only been able to match all of the above by using 2 expressions in the Custom URL Category...&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;EXAMPLE.COM/ - This will permit example.com/ and any path after it.&amp;nbsp; Will not permit any subdomains.&lt;/LI&gt;
&lt;LI&gt;*.EXAMPLE.COM/ - Will permit abc.example.com/ and any path after it.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone know of a way to match an entire website using a single expression?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 16:46:52 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/what-expression-to-use-to-block-permit-an-entire-website/m-p/524473#M108513</guid>
      <dc:creator>jambulo</dc:creator>
      <dc:date>2022-12-19T16:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: What expression to use to block/permit an entire website?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/what-expression-to-use-to-block-permit-an-entire-website/m-p/524494#M108526</link>
      <description>&lt;P&gt;The way PA URL pattern matching works (left start string matching up to separator) it requires a minimum of 2 expressions, one for the root domain and one for any subdomain plus root domain, to properly match a website.&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;example.com/&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;*.example.com/&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Theoretically, you can use a non-separator terminated expression, but that will match the website as well many other sites and paths, i.e.:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;example.com&lt;/P&gt;
&lt;P&gt;Matches:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;http ://example.com/&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;http ://subdomain.example.com/&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;http ://example.com.evil.com/&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;http ://evil.com/pages/example.com.php&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For global blocks this might not be as much of a problem (though you may inadvertently block stuff unintentionally), but it is definitely not a good practice for allowing/categorizing sites.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 21:30:16 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/what-expression-to-use-to-block-permit-an-entire-website/m-p/524494#M108526</guid>
      <dc:creator>Adrian_Jensen</dc:creator>
      <dc:date>2022-12-19T21:30:16Z</dc:date>
    </item>
  </channel>
</rss>

