If you're seeing Origin Errors - then that's something that's easily rectifiable.
It is most likely caused by your host servers using IP authentication to prevent non-human traffic from accessing content. Whereas before - the requests for the content came directly from a user's IP - when you use Ezoic the requests are coming from the Ezoic AWS servers (which might be wrongly classified as a 'bot').
The options below will lift the block on Ezoic’s requests.
X-Forwarded-For (XFF) HTTP header field is the standard for identifying the originating IP address of a client connecting to a web server through an HTTP proxy or load balancer. In short, it helps the server determine the real client IP.
Without the use of XFF any connection through the proxy would show only the originating IP address of the proxy server. Thus, the proxy server is turned into an anonymizing service in which the detection and prevention of abusive accesses is made more difficult (can’t detect originating IP address).
By implementing X-Forwarded-For on your site, Ezoic will send the IP address of the original web visitor through to your server in the X-Forwarded-For header:
- In PHP it is available in: $_SERVER['HTTP_X_FORWARDED_FOR']
You will need to put the code above in a file that all of your pages access (e.g. header.php, init.php or config.php). You should see $_SERVER['REMOTE_ADDR'], which you can replace with $_SERVER['HTTP_X_FORWARDED_FOR']
- In .NET its available in HttpContext.Current.Request.Headers["X-Forwarded-For"]
In rare cases, your hosting company may inadvertently block Ezoic’s servers (AWS) from your site’s content. You may see a 403 access forbidden error when this occurs.
If the hosts are using IP addresses to block, please contact your Ezoic representative for a list of IP addresses to “white list”. Once you receive the list of IP addresses, please contact your host to “white list” the IP addresses (give them the file at the bottom of this article).
User Agent Authentication
Instruct your host to set user agent authentication, and your host can look for “x-middleton” (which comes with all requests).
By using the user agent the host can detect “x-middleton” getting passed in with every request AWS makes to authenticate Ezoic’s requests. This will stop the requests from getting blocked.