Whitelist the CDN servers, if there is ACL on the origin

If you have restrictions on your origin, there are two methods to whitelist the CDN servers:

  • via HTTP header (recommended)
  • via CDN servers' IP addresses.

HTTP header

Use the Add Request Headers option to set up a custom header.

We recommend the header because once set up it doesn't require any further update. The list of IP addresses has to be updated regularly.

IP addresses

To get CDN servers' IP addresses use the API request:

curl -i -X GET https://api.gcorelabs.com/cdn/public-ip-list

Note! We are expanding our network, so the list is constantly changing. If you don't add a new server IP to your whitelist, users won't get the content from this edge.

We recommend you to write a script that would automatically update your ACL. New IP addresses are added to our list 30-60 minutes before a new server is launched.

Was this article helpful?
Recently viewed articles