Metro code field now available in Rules
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 | Type | Description |
|---|---|---|
ip.src.metro_code | String | null | The metro code (DMA) of the incoming request's IP address. Returns the designated market area code for the client's location. |
Example filter expression:
ip.src.metro_code eq "501"For more information, refer to the Fields reference.
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Directory
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- © 2026 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark
-