Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Cloud CDN
  • Getting started
    • Service overview
    • Resource
    • Origins and origin groups
    • Redirecting requests
    • Content caching
    • Secure tokens
    • IP-based access policy
    • Log export
    • Labels
    • Quotas and limits
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • Troubleshooting

In this article:

  • Policy type
  • List of excluded IP addresses
  1. Concepts
  2. IP-based access policy

IP-based access policy

Written by
Yandex Cloud
Updated at August 31, 2024
  • Policy type
  • List of excluded IP addresses

IP-based access policy allows you to restrict access to content distributed over a CDN by setting an allow or block policy for CDN resources.

You can configure the access policy when creating or updating a CDN resource using the management console, CLI, Terraform, and API.

The IP-based access policy is defined by the policy type and the list of IP addresses to exclude from the policy.

For more information about IP-based access policies, see the EdgeCenter CDN provider documentation.

Policy type

You can set up an allow or block policy for a resource.

The allow policy allows access to the CDN resource content for any IP addresses other than those excluded by the user. The allow value defines the policy.

The block policy denies access to the CDN resource content for any IP addresses other than those excluded by the user. The deny value defines the policy.

You can activate either one allow or one block access policy for a CDN resource. You cannot configure more than one IP access policy for one CDN resource at the same time.

List of excluded IP addresses

IP addresses excluded from the access policy must have a subnet prefix in the CIDR notation, e.g., 192.168.3.2/32 or 2a03:d000:2980:7::8/128. For each user-specified address, the service determines the IP range of the network covering the address in question and puts all addresses from this range on the exclusion list.

For example, if a user specifies the 1.2.3.4/24 address, the service will put the entire range of IP addresses from 1.2.3.1 to 1.2.3.254 on the exclusion list as all of them belong to the 1.2.3.0/24 network containing the user-specified address.

You can add multiple IP addresses (subnet prefixes) to the list of excluded IP addresses.

Changing the IP address exclusion list will completely overwrite the existing exclusion list. To add new IP addresses to the exclusion list or remove unnecessary addresses from the list, redefine a complete, up-to-date list of excluded IP addresses with all required changes.

See also

  • Creating a resource
  • Editing the basic settings of a resource

Was the article helpful?

Previous
Secure tokens
Next
Log export
© 2025 Direct Cursus Technology L.L.C.