When imgix receives a request for an image that is not cached, we'll first try to retrieve the asset from your Source's origin. Because of this, it's important to ensure that imgix has unrestricted and unobstructed access to your origin files.
In order to ensure requests succeed from imgix to your origin, you may first need to identify which requests to your origin are actually coming from imgix. You can ID these requests by looking for either our user-agent or IP address range.
Every request made from imgix to your origin will include the user-agent
imgix/* in the header of the request.
Additionally, imgix uses these IP ranges for making requests to your origin:
These IP addresses are current as of April 02, 2021, though they are expected to change in the future. Any future changes will be reflected and updated in this document.
If you are using these IP addresses to allow imgix to access your origin assets, you can subscribe using this form to be alerted of any scheduled changes to the IP addresses.
This information can be used in a few different ways, such as putting imgix on an allowlist or setting up different security rules for requests coming from imgix.
Some customers prefer that their origin servers are not publicly accessible. In the case of S3, Azure and GCS Sources, imgix is able to successfuly retrieve assets from those protected buckets by using valid credentials entered on the Source configuration page. However, in the case of Web Folder and Web Proxy Sources, such security settings can prevent imgix from being able to retrieve images. If the service is unable to retrieve an image from the origin, then we will return a
The best method of making sure imgix can pull assets from your origin is by allowlisting our user agent. Since our user-agent is not expected to change anytime in the future, this is the recommended method of allowlisting for future compatibility.
However, allowlisting by user-agent is not as secure as allowlisting by IP address. This is because the user-agent is easy to spoof, while the IP address is not.
Most origins have the ability to put imgix's user-agent or IP address on an allowlist.
It's common to have some security measures against a large number of synchronous requests to different URLs on your origin. This often manifests as an error being returned from your origin once the number of requests have reached a threshold from the same IP address.
With imgix, there is a low chance of this issue occurring since requests will often hit our cache more often than it will hit your origin. However, in cases where a large number of URLs are added or when a new Source is exposed to a large amount of traffic, it's not uncommon for your origin to impose a rate limit against imgix.
Such issues are often temporary. Regardless, if you have any rate limits in place, you may want look into exempting imgix from those limits.
Amazon's Storage Service (S3) allows storing data at a specific geographical region. An imgix AWS S3 Source can connect to a bucket in one of the supported regions listed in the table below.
|US East||N. Virginia||us-east-1|
|US West||N. California||us-west-1|
|Asia Pacific||Hong Kong||ap-east-1|
|South America||Sao Paulo||sa-east-1|