{"id":25006,"date":"2023-02-09T04:47:54","date_gmt":"2023-02-09T04:47:54","guid":{"rendered":"http:\/\/localhost\/helpold\/?p=24337"},"modified":"2024-12-03T00:36:20","modified_gmt":"2024-12-02T21:06:20","slug":"glob-pattern","status":"publish","type":"post","link":"https:\/\/www.arvancloud.ir\/help\/en\/glob-pattern\/","title":{"rendered":"Address Settings with Glob Pattern"},"content":{"rendered":"<p dir=\"ltr\">Previously, it was possible to change the default behavior of ArvanCloud Security products for different domain addresses with &#8220;page rules&#8221;. In the new generation of these products, this is done by defining rules in the respective product. These rules use a different type of page rule called &#8220;Glob Pattern&#8221; to specify an address.<\/p>\n<p dir=\"ltr\">Glob patterns are a common way to match addresses on Unix operating systems. In this way, the following meta scripts are introduced to <strong>define the pattern of a part of an address<\/strong>:<\/p>\n<ul dir=\"ltr\">\n<li>? : a character of any kind<\/li>\n<li>* : any string (also empty string)<\/li>\n<li>[&#8230;] : only the characters in brackets. Characters can be defined as a range (like a-z). To use &#8220;-&#8221; as one of the characters, it must be placed after the character. For example: [abc-]<\/li>\n<li>[&#8230;!] : Any character except the characters in brackets.<\/li>\n<\/ul>\n<p dir=\"ltr\">None of these contain the address separator &#8220;\/&#8221;. For this reason, the superscript \u00bb**\u00ab (without suffix or prefix) should be used to <strong>check a pattern in all sub-branches<\/strong>.<\/p>\n<p dir=\"ltr\"><strong>Note:<\/strong> Glob patterns in the new generation of ArvanCloud Security are not case-sensitive.<\/p>\n<p dir=\"ltr\"><strong>Note:<\/strong> Given the common &lt;scheme&gt;:\/\/&lt;hostname&gt;\/&lt;path&gt; form for addresses, patterns are matched only with the &lt;hostname&gt;\/&lt;path&gt; part (and the \/ \/:&lt;scheme&gt; part is not considered).<\/p>\n<p dir=\"ltr\">Assuming you are setting up the example.com domain, the following table shows examples of glob patterns and their matches and mismatches:<\/p>\n<table dir=\"ltr\" style=\"width: 79.2351%; height: 1276px;\" width=\"569\">\n<tbody>\n<tr style=\"height: 24px;\">\n<td style=\"width: 41.4462%; height: 24px;\">Glob Pattern<\/td>\n<td style=\"width: 95.7349%; height: 24px;\"><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 41.4462%;\">Pattern<\/td>\n<td style=\"width: 95.7349%;\">Conformity<\/td>\n<\/tr>\n<tr style=\"height: 48px;\">\n<td style=\"width: 41.4462%; height: 48px;\">example.com\/**<\/td>\n<td style=\"width: 95.7349%; height: 48px;\">Any path within example.com (and not its subdomains)<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"width: 41.4462%; height: 24px;\">*example.com<\/td>\n<td style=\"width: 95.7349%; height: 24px;\">Any subdomain of example.com<\/td>\n<\/tr>\n<tr style=\"height: 292px;\">\n<td style=\"width: 41.4462%; height: 292px;\">example.com\/test*<\/td>\n<td style=\"width: 95.7349%; height: 292px;\"><strong>Matches with:<\/strong><\/p>\n<p>example.com\/test<\/p>\n<p>example.com\/tests<\/p>\n<p>example.com\/TeSt<\/p>\n<p><strong>Not Matches with:<\/strong><\/p>\n<p>example.com\/atest<\/p>\n<p>example.com\/test\/icon.jpg<\/td>\n<\/tr>\n<tr style=\"height: 252px;\">\n<td style=\"width: 41.4462%; height: 252px;\">example.com\/assets\/**\/*.jpg<\/td>\n<td style=\"width: 95.7349%; height: 252px;\"><strong>Matches with:<\/strong><\/p>\n<p>example.com\/assets\/icon.jpg<\/p>\n<p>example.com\/assets\/images\/bg.jpg<\/p>\n<p>example.com\/assets\/images\/icons\/ok.jpg<\/p>\n<p><strong>Not Matches with:<\/strong><\/p>\n<p>example.com\/assets\/icon.png<\/td>\n<\/tr>\n<tr style=\"height: 252px;\">\n<td style=\"width: 41.4462%; height: 252px;\">api.example.com\/v?<\/td>\n<td style=\"width: 95.7349%; height: 252px;\"><strong>Matches with:<\/strong><\/p>\n<p>api.example.com\/v1<\/p>\n<p>api.example.com\/v2<\/p>\n<p><strong>Not Matches with:<\/strong><\/p>\n<p>api.example.com\/v<\/p>\n<p>api.example.com\/v1\/items<\/td>\n<\/tr>\n<tr style=\"height: 292px;\">\n<td style=\"width: 41.4462%; height: 292px;\">api.example.com\/v[0-9]\/**<\/td>\n<td style=\"width: 95.7349%; height: 292px;\"><strong>Matches with:<\/strong><\/p>\n<p>api.example.com\/v1<\/p>\n<p>api.example.com\/v1\/items<\/p>\n<p><strong>Not Matches with:<\/strong><\/p>\n<p>api.example.com\/v<\/p>\n<p>api.example.com\/va<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p dir=\"ltr\">\n","protected":false},"excerpt":{"rendered":"<p>Previously, it was possible to change the default behavior of ArvanCloud Security products for different domain addresses with &#8220;page rules&#8221;. In the new generation of these products, this is done by defining rules in the respective product. These rules use a different type of page rule called &#8220;Glob Pattern&#8221; to specify an address. Glob patterns [&hellip;]<\/p>\n","protected":false},"author":79,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"r1_post_views_count":"645","feedback_yes":"0","feedback_no":"0","ads_id_sidebar":"","ads_id_content":"","footnotes":""},"categories":[249,281],"tags":[],"class_list":["post-25006","post","type-post","status-publish","format-standard","hentry","category-cdn","category-security-setting"],"lang":"en","translations":{"en":25006},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/www.arvancloud.ir\/help\/wp-json\/wp\/v2\/posts\/25006","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.arvancloud.ir\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.arvancloud.ir\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.arvancloud.ir\/help\/wp-json\/wp\/v2\/users\/79"}],"replies":[{"embeddable":true,"href":"https:\/\/www.arvancloud.ir\/help\/wp-json\/wp\/v2\/comments?post=25006"}],"version-history":[{"count":4,"href":"https:\/\/www.arvancloud.ir\/help\/wp-json\/wp\/v2\/posts\/25006\/revisions"}],"predecessor-version":[{"id":27850,"href":"https:\/\/www.arvancloud.ir\/help\/wp-json\/wp\/v2\/posts\/25006\/revisions\/27850"}],"wp:attachment":[{"href":"https:\/\/www.arvancloud.ir\/help\/wp-json\/wp\/v2\/media?parent=25006"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.arvancloud.ir\/help\/wp-json\/wp\/v2\/categories?post=25006"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.arvancloud.ir\/help\/wp-json\/wp\/v2\/tags?post=25006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}