Restrict where your content can be played
Sports and broadcast rights are sold by territory, and a default Adaptive Media Delivery environment doesn't enforce any of that — it serves anyone who asks. The Content Targeting - Protection behavior lets you allow or deny requests by country, region, DMA, IP address, CIDR block, or referring domain, all evaluated at the edge before your origin is touched.
When to use this
- Your licensing agreements are territorial and you must prove you enforce them.
- You want to block or allow specific networks, corporate ranges, or partners by IP.
- Other sites are hotlinking your streams and you want to shut that down by referrer.
Geolocation comes from the client IPBy default this feature reads the
X-Forwarded-Forheader. To use the connecting IP address only, see Advanced protection.
Where this sits in the protection stack
| Level | Protection |
|---|---|
| — | Open access. Anyone can access your content. |
| 1 | Content Targeting - Protection — this topic. |
| 2 | Token authentication |
| 3 | HTTPS protection. Secure delivery on your service hostnames. |
| 4 | Media encryption |
| Most | DRM encryption. |
Before you begin
Get it on your contract. Content Targeting - Protection isn't available by default — talk to your account team about adding it, or the behavior won't appear in the catalog.
If you plan to use redirects instead of denials, you also need a page already live at the redirect URL, and clients that can follow an HTTP 302 on manifest requests.
Add the behavior
- Add the Content Targeting - Protection behavior to the rule you want it in. Search for "Content Targeting" in the behavior catalog.
- Set Enable Content Targeting to On.
Then enable one or more of the protections below.
Geo protection
Allows or denies access based on the geographic location associated with the requesting IP address. Set Enable Geo Protection to On, then:
- Mode. Allow… grants access to clients matching your settings; Deny… blocks them.
- Countries. Select whole countries, each shown with its two-letter code —
US,BR, and so on. - Regions. Select a country plus a region: US states, Canadian provinces, Chinese provinces, and so on. Listed alphabetically by country then region, for example
US-CAfor United States – California. - DMAs (United States only). Designated Market Areas — regions where the population receives the same or similar internet media offerings, based on Nielsen Media Research DMA regions. You can request DMA data from Nielsen at nielsen.com/dma-region.
- Override GEO Controls for these IPs/CIDR blocks. With Mode set to Deny…, list IPs or CIDR blocks inside the denied countries or regions that should still get through. Maximum 160 entries.
- Redirect request instead of Deny. Set it to On and enter a complete page address in Redirect URL (maximum 2,000 characters). In Allow… mode, anything outside your configuration is redirected there; in Deny… mode, anything matching your configuration is.
Overrides only work in one directionOverride GEO Controls only overrides a Deny… mode for individual addresses inside a denied country or region. You can't use it to allow a region while blocking one address inside it — use IP protection for that.
IP protection
Allows or denies individual IP addresses or CIDR blocks. Set Enable IP Protection to On, then:
- Mode. Allow… or Deny….
- IP Addresses/CIDR Blocks. Enter a valid address or block and confirm the new entry. Repeat as needed.
- Redirect request instead of Deny. Same behavior as geo protection — maximum 2,000 characters, and the client must handle a 302 on manifest requests.
Referrer protection
Stops unauthorized sites from republishing links to your content. Set Enable Referrer Protection to On, then:
- Mode. Allow… permits the listed referring domains and denies all others; Deny… denies the listed domains and allows all others.
- Referrer Domains. Up to 256 characters per domain, in one of two forms:
- Full domain —
www.address.com. Don't include the scheme. - Wildcard domain —
.address.com, with a leading period, matching all subdomains.
- Full domain —
- Redirect request instead of Deny. As above.
Advanced protection
Available only when geo protection or IP protection is enabled. It controls whether addresses in the X-Forwarded-For header are considered.
| Setting | Options |
|---|---|
| X-Forwarded-For within Geo Protection | Ignore XFF — check the connecting IP only. Check both XFF & Connecting IP |
| X-Forwarded-For within IP Protection | Ignore XFF Check both XFF & Connecting IP Ignore connecting IP if XFF is present |
Protection precedence
You can combine all three protections. When they conflict, the lighter protection is evaluated first, so edge servers spend fewer cycles on a request they're going to reject anyway.
Order of evaluation
- IP protection
- Referrer protection
- Geo protection
Deny beats allow
Using that order, a Deny… in one protection beats an Allow… in a lower one. Set IP protection to deny a specific address and geo protection to allow the country containing it, and that address is still denied.
The last redirect wins
Where redirects are configured and a conflict occurs, the redirect belonging to the last protection in the order above is applied:
- IP protection redirects, referrer protection denies a conflicting address → the request is denied.
- IP protection redirects, referrer protection redirects → the referrer protection redirect is used.
- IP protection redirects, referrer protection redirects, geo protection denies → the request is denied.
- All three redirect → the geo protection redirect is used.
Going further: catch proxies and VPNs
Geo protection is only as good as the IP it sees. Users routing through a commercial VPN or proxy will present an in-territory address. Enhanced Proxy Detection with GeoGuard adds proxy detection and location spoofing protection using data from GeoComply.
- Best Practices mode (recommended) applies the primary GeoGuard categories automatically — you just set the Action: allow, deny, or redirect.
- Advanced mode lets you enable GeoGuard categories individually with their own actions.
Keep the "must have" categories onGeoGuard maintains lists of must-have and optional categories. In Advanced mode, the must-have categories need to stay On for basic protection. Deviate from that and proxy detection isn't guaranteed.
Configuration is identical across the Akamai products that offer it — see Enhanced Proxy Detection with GeoGuard.
Related
- Protect streams with token authentication
- Encrypt media segments at the edge
- Trace leaked content with forensic watermarking
- Origin IP Access Control List — restrict your origin to a small, stable set of Akamai IPs
Updated about 1 hour ago
