Rate Your Experience

How to Fix Origin Errors

Modified on: Wed, 10 Apr, 2024

Jump to:

Solutions to Origin Errors

What is an Origin Error?

Key Indicators of an Origin Error



Solutions to Origin Errors

Regardless of the error you are seeing, it's a good idea to first check that the DNS records at your host match those you have entered at Ezoic and that your SSL settings are correct. If you have recently moved hosts or your existing host has moved your site to a new server, then the origin server IPs will likely have changed, and the copy of these in your Ezoic account needs to be updated accordingly.


If you are still seeing an origin error after confirming that your DNS records and SSL settings are configured correctly, then it's likely that Ezoic IPs are being miscategorized as 'bot traffic' by either a security feature or your host.


If you discover it is a security plugin blocking Ezoic, you can whitelist Ezoic's IP ranges (linked at the end of this article) via their plugin (if you are using Wordfence, they have specific instructions for how you can make sure that requests via the Ezoic proxy are whitelisted. You can find these instructions here). Then clear the site cache.


Otherwise, there are four main options to help your host accept requests from Ezoic, any of which can be implemented by your host at your request. You may find that you are able to resolve your problem just by taking one of these steps, but if you've experienced an issue then it's good practice to implement each of the solutions below.


1. Whitelisting Ezoic's IP Addresses

If your host has blocked one or more of Ezoic's IP addresses because it has mistaken it for bot traffic (typically, but not always, accompanied by a '403 Access Forbidden' error, 520, or 'Origin Error'), whitelisting Ezoic's IP addresses will allow your host to recognize and authorize the IP addresses in question.

All you need to do to is send the listed Ezoic IP addresses below to your host, requesting that they add them to their whitelist, and then update the Connection setting in your publisher dashboard to confirm.

52.20.63.25
3.225.202.138
3.217.200.190
54.212.71.227
52.12.170.68
34.218.21.81
3.7.90.144
13.127.240.219
18.139.6.69
18.140.184.0
3.106.6.164
3.106.176.6
13.237.131.67
15.222.77.144
15.222.108.52
18.157.131.187
18.157.105.182
3.126.25.160
34.248.174.237
52.16.85.139
34.255.61.232
15.236.165.82
15.236.137.228
15.236.166.30
18.228.20.129
18.228.107.195
2600:1f10:4c55:e200::/56
2600:1f13:393:600::/56
2406:da1a:e10::/56
2406:da18:9d0:1400::/56
2406:da1c:58a:e100::/56
2600:1f11:f39:6f00::/56
2a05:d014:776:a600::/56
2a05:d018:dd:7800::/56
2a05:d012:4d8:6800::/56
2600:1f1e:342:2f00::/56


IMPORTANT: Once you have whitelisted these IPs with your host, please log in to your Ezoic account and go to Settings -> Connection -> Troubleshooting and select CONFIRM WHITELISTING to complete the set-up process.

image


2. Set up an X-Forwarded-For Header


The X-Forwarded-For Header is a header field that you can use to make sure the 'real' IP of your users is passed along by a proxy like Ezoic or Cloudflare. This is especially helpful for specific features (like login forms) that need to see the original user's IP. You can add this header to your server (and let your host know that they need to look for it and authorize requests on that basis), or ask your host to do it for you.


You can find instructions for implementing X-Forwarded-For on your site here.

3. User Agent Authentication

With all requests, Ezoic will send the actual IP of the user under the request header 'x-middleton-ip'. If you explain this to your host, they should be able to find the request IP there, rather than by using a 'requested-by' header.

*If you are on a shared server and your host refuses to implement any of the above fixes on a shared server, then you may need to consider asking them if they would do so if you upgraded your hosting package, or else look at the possibility of using another hosting provider.



What is an Origin Error?


An Origin Error occurs whenever the origin server isn't providing the site to Ezoic's servers as expected. There is no one single cause of an origin error - for example, it may simply be that the site is down at your host, in which case Ezoic won't be able to directly help. However, if you're in the early stages of Ezoic integration and experience an origin error, this may be because your host has miscategorized Ezoic traffic, as explained below.


When you integrate with Ezoic, the system will act as a proxy between your site and your users, so that we can provide an Ezoic version of your site. Consequently, when Ezoic is turned on, instead of seeing requests from your users' IP addresses directly, your origin server will see those requests as coming from Amazon Web Services. This can sometimes be incorrectly classified as 'bot traffic' by your host, which could prevent the page from loading or stop login pages from working, and in those cases this may create an 'origin error', which can look like this:


image

Key Indicators of an Origin Error


If you're still very early in the process of Ezoic integration and you experience one of the following errors, there's a good chance that this is due to the classification of Ezoic requests as bot traffic, as explained above, particularly if the error is only intermittent and not consistent.


  • '500' error
  • 'Origin' error
  • '520' error
  • '403 Forbidden' error
  • '401' error (which may read 'your IP has been used by spambots to register multiple times')
  • '503' error (which may be due to requests being timed out when connecting to the host server)


**Please note, if you are seeing a '404' error code, or a '301 redirect' error, it's possible that there is an error at your host and you will need to contact them to check. 



Loading ...