{"id":143,"date":"2026-01-12T00:00:00","date_gmt":"2026-01-12T00:00:00","guid":{"rendered":"https:\/\/wordpress.securinsight.ca\/index.php\/2026\/01\/12\/rules-metro-code-field-now-available-in-rules\/"},"modified":"2026-01-12T00:00:00","modified_gmt":"2026-01-12T00:00:00","slug":"rules-metro-code-field-now-available-in-rules","status":"publish","type":"post","link":"https:\/\/wordpress.securinsight.ca\/index.php\/2026\/01\/12\/rules-metro-code-field-now-available-in-rules\/","title":{"rendered":"Rules &#8211; Metro code field now available in Rules"},"content":{"rendered":"<p>The <code>ip.src.metro_code<\/code> field in the Ruleset Engine is now populated with DMA (Designated Market Area) data.<\/p>\n<p>You can use this field to build rules that target traffic based on geographic market areas, enabling more granular location-based policies for your applications.<\/p>\n<h4>Field details<\/h4>\n<table>\n<thead>\n<tr>\n<th>Field<\/th>\n<th>Type<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>ip.src.metro_code<\/code><\/td>\n<td>String | null<\/td>\n<td>The metro code (DMA) of the incoming request&#8217;s IP address. Returns the designated market area code for the client&#8217;s location.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Example filter expression:<\/p>\n<div>\n<figure>\n<pre data-language=\"plaintext\"><code class=\"language-plaintext\"><div><div><span>ip.src.metro_code eq \"501\"<\/span><\/div><\/div><\/code><\/pre>\n<div><\/div>\n<\/figure>\n<\/div>\n<p>For more information, refer to the <a href=\"https:\/\/developers.cloudflare.com\/ruleset-engine\/rules-language\/fields\/reference\/ip.src.metro_code\/\">Fields reference<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>The ip.src.metro_code field in the Ruleset Engine is now populated with DMA (Designated Market Area) data. You can use this field to build rules that target traffic based on geographic market areas, enabling more granular location-based policies for your applications. Field details Field Type Description ip.src.metro_code String | null The metro code (DMA) of the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-143","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts\/143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/comments?post=143"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts\/143\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/media?parent=143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/categories?post=143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/tags?post=143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}