Keitaro + CloudFlare

Our users often integrate Cloudflare for domains which are used in Keitaro. Below is a step-by-step guide on correct integration.

Usually, CloudFlare is used to serve as a proxy for domains and to change the real ip of domains.

There’s a CF-IPConfig feature in Keitaro GeoDBs settings (Maintenance > GeoDBs), which allows receiving a visitor’s country code in the header. CF-IPConfig is supported only with IP2Location databases.

The correct integration between Keitaro and CloudFlare is the following:

  1. Connect the domains with the tracker.
  2. Add connected domains to CloudFlare.

Adding the domain to Keitaro

Let’s take the domain from Namecheap.

Go to your Dashboard, select the domain and click Manage button and go Advanced DNS settings inside.

Click Add New Record, and add a new A-Record with Keitaro’s ip:

Save the changes and wait for the DNS cache to update. The changes may take up to 24 hours to go live.

Next, go to Keitaro, to Domains page and add the domain:

Adding SSL to domains

Video manual about adding SSL

Log in to the terminal and run the command

curl > run; bash run

Where replace and with your real domain names.

Integrating with CloudFlare

Login to your CloudFlare account, put your domain and click Add Site:

Proceed to the page with proxy settings:

Don’t change anything on this page and proceed to the next step, where CloudFlare sets ut its ns-records:

Copy these settings and go to Namecheap domain’s Manage page. Choose Custom DNS in Nameservers settings:

Insert CloudFlare values:

Save the changes. DNS server update may take up to 48 hours to take effect.

Go back to CloudFlare and save the changes on the page.

You’ll see a final page:

Scroll down and click Re-check nameservers:

Done! The setup is complete.

Now we only need to wait for the changes to take effect. You’ll receive an email from CloudFlare when the setup will be finished.

In case you have any questions left, feel free to check our Knowledge Base or contact our support team.

Keitaro Team

Team to deliver fresh and quality content!

View all posts by Keitaro Team →