Skip to content

How To Fix Ezoic Origin Error [Working Guide 2022]

Kwork.com - freelancers’ services from $10

This guide is all about how I fixed the Ezoic origin error issue after integrating my website with Ezoic.

You might want to ask; if I was able to fix the Ezoic origin error, how come there are no Ezoic ads on this website. This is not the website I used for Ezoic monetization.

Back to the main topic of how to fix origin error from Ezoic;

The main reason why most websites using Ezoic experience origin error is because most hosts usually miscategorize Ezoic IP addresses as bot traffic. In some cases, this can be caused by a security plugin.

Ezoic uses reverse proxy which means that when people visit your website, all requests will be replaced with Ezoic IP addresses rather than visitors’ IP addresses.

Since all requests are coming from a single or few IP addresses, your host takes them as bots attacking your websites so they are blocked.

Origin error usually happens to websites on shared hosting plans, especially on Namecheap.

Some users on a shared hosting plan on other hosting companies said they didn’t experience origin errors on their websites monetized with Ezoic.

Nevertheless, if you are experiencing an Ezoic origin error, the first step to fix it is to whitelist all Ezoic IP addresses. Unfortunately, that cannot be possible as many hosts will ask you to upgrade to a higher plan such as VPS or cloud hosting before you can whitelist the Ezoic IP addresses.

My Origin Error Experience

As my first time using Ezoic, I thought it was an easier process like the Google AdSense application and approval where you place the codes on your website and that is all.

When I integrated my website with Ezoic using their nameservers, my website started having critical issues and origin error.

So I contacted Ezoic support; I was told to contact my host and to tell them to whitelist the Ezoic IP addresses.

Namecheap said for security reasons it is not possible to whitelist third-party IP addresses on shared hosting except I upgrade to a higher plan.

How To Fix Ezoic Origin Error

 

How To Fix Ezoic Origin Error

Then I send the feedback to Ezoic and I was given other options that I should  set up an x-forwarded-for header.

Since I was using WordPress, I was told to copy and paste the code below to my  wp-config.php file.

// Use X-Forwarded-For HTTP Header to Get Visitor’s Real IP Address

if ( isset( $_SERVER[‘HTTP_X_FORWARDED_FOR’] ) ) {

$http_x_headers = explode( ‘,’, $_SERVER[‘HTTP_X_FORWARDED_FOR’] );

$_SERVER[‘REMOTE_ADDR’] = $http_x_headers[0];

}

I wasn’t ready to temper with my website theme so I didn’t’ buy this idea.

I was given another option to download the ‘proxy real IP’ plugin. I downloaded and install the plugin with the hope that my website will stop having origin error.

How To Fix Ezoic Origin Error

The proxy real IP plugin appears to be abandoned (updated 27/12/2012, tested to WP 3.3.2) and has never been tested with the 3 major releases on WordPress.  Nevertheless, Ezoic still recommends using the plugin to stop the origin error. This couldn’t fix the origin error.

Before that, I have switched to Cloudflare nameservers and added my website to Cloudflare as advised by a friend who also uses Ezoic for one of his websites. Cloudflare is the number one in usage statistics of reverse proxy services for websites in the entire world.

Ezoic is a certified Cloudflare partnerso there ought not to be any negative impact from the nameservers and SSL.

The Ezoic origin error stopped but another issue started. The website started having Cloudflare 520 error (web server is returning an unknown error).

How Fix Ezoic Origin Error

I contacted Ezoic once again, I was told to try “User-Authorization” where I permit user-agents ending in x-middleton/1 to not be miscategorized as bot traffic on my site. My hosting package won’t permit me to do that.

Now it was dawn on me that I will need to switch to another host. I was advised to move my website to Ezoic WordPress free hosting or another host that won’t block Ezoic IP addresses.

What did I do?

I decided to return to how everything was by switching back to Namecheap nameservers and starting afresh.

I was determined to figure out a permanent solution to this.

How To Fix Origin Error

Two Methods To Fixed Ezoic Origin Error

Method 1

The next stages of what I will show you might be able to help you to fix the Ezoic origin error.

1. Use the Ezoic Nameservers
chipmunk.ezoicns.com
javanese.ezoicns.com

How To Fix Ezoic Origin Error

2. In your Ezoic account, for site integration, use Name Servers integration.

How To Fix Ezoic Origin Error

3. Do not activate Cloudfare in your Ezoic account.

How To Fix Ezoic Origin Error

 

4. For the SSL settings, turn SSL type to Strict. For Automatic HTTPS Redirect, turn it ON.

How To Fix Ezoic Origin Error

 

5. Deactivated and delete the proxy real IP plugin if you have it installed. Install the Wordfence security plugin to whitelist all of the Ezoic IP addresses. First, make sure to tick Use the X-Forwarded-For HTTP header.

How To Fix Ezoic Origin Error

Next, click on Edit trusted proxies and paste all the Ezoic IP addresses in the box and save.

How To Fix Ezoic Origin Error

Wordfence security plugin has the feature for whitelisting visitors’ IP addresses. I wonder why Ezoic is yet to recommend the plugin and update it on their support page.

 

Method 2

This method is similar to the first but has a little slight difference in the settings.

1. Use the Cloudflare Nameservers
gannon.ns.cloudflare.com
liberty.ns.cloudflare.com

How To Fix Ezoic Origin Error

 

2. In your Ezoic account, for site integration, use Cloudflare integration or WordPress Plugin.

How To Fix Ezoic Origin Error

You can integrate using Ezoic WordPress Plugin but Cloudflare is the preferable setting for best performance.

How To Fix Ezoic Origin Error

3. Activate Cloudfare in your Ezoic account. If you are integrating your site using the WordPress plugin, you should not activate Cloudflare here.

How To Fix Ezoic Origin Error

4. For the SSL settings, turn SSL type to Strict. For Automatic HTTPS Redirect, turn it ON

How To Fix Ezoic Origin Error

5. Deactivated and delete the proxy real IP plugin if you have it installed. Install the Wordfence security plugin to whitelist all of the Ezoic IP addresses. First, make sure to tick Use the Cloudflare “CF-Connecting-IP” HTTP header to get a visitor IP.

Next, click on Edit trusted proxies and paste all the Ezoic IP addresses in the box and save.

How To Fix Ezoic Origin Error

 

If you installed the Ezoic WordPress plugin, you will get a compatibility warning that “the following plugin(s) must be disabled to fully utilize Ezoic WordPress integration without issues or conflicts.” You should ignore the message. Do not deactivate the plugin as long it is Wordfence security.

How To Fix Ezoic Origin Error

You can deactivate other plugins such as WP Super Cache or other caching plugins. Ezoic has Leap features for caching and speed performance improvements. Ezoic’s Leap optimization features may require that these plugins be turned off or that all minification, caching, or “speed” optimizations are disabled to prevent conflicts. Leap optimally replaces the functionality of these plugins as it relates to site speed.

How To Get The Cloudflare Nameservers

You can’t just copy any Cloudflare nameservers and add them to your domain host. You will need to create an account with Cloudflare and add your domain.

How To Fix Ezoic Origin Error

You should see the assigned nameservers to your account and add them to your domain.

All of the above settings can stop the Ezoic origin error on your website. You can try if it will work for you. For me, I don’t need to change my host anymore for now.

You might not need to follow all the exact settings on this guide but it is necessary to use the Wordfence security plugin to whitelist the IP addresses.

If your website is still encountering Ezoic origin error after following my guide, you can leave a comment below or shoot me a message for assistance.

You may still have origin error or any other errors for using Ezoic or Cloudflare integration after installing the Wordfence security. Some host only allows whitelisting IPs from the server-side and not from the website dashboard.

So what this means is that any plugin or any other method used won’t work except you upgrade to VPS hosting or change to another host that has no issue with Ezoic IP addresses.

Last Updated 20/2/2022

2 thoughts on “How To Fix Ezoic Origin Error [Working Guide 2022]”

  1. W3Techy Enterprise

    Oh, thanks for this, it made me abandoned Ezoic and CloudFlare as a whole. Let me rush and try this

Leave a Reply

Your email address will not be published.