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 IP

By default this feature reads the X-Forwarded-For header. To use the connecting IP address only, see Advanced protection.

Where this sits in the protection stack

LevelProtection
—Open access. Anyone can access your content.
1Content Targeting - Protection — this topic.
2Token authentication
3HTTPS protection. Secure delivery on your service hostnames.
4Media encryption
MostDRM 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

  1. Add the Content Targeting - Protection behavior to the rule you want it in. Search for "Content Targeting" in the behavior catalog.
  2. 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-CA for 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 direction

Override 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.
  • 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.

SettingOptions
X-Forwarded-For within Geo ProtectionIgnore XFF — check the connecting IP only.
Check both XFF & Connecting IP
X-Forwarded-For within IP ProtectionIgnore 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

  1. IP protection
  2. Referrer protection
  3. 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 on

GeoGuard 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


Did this page help you?