Cron job doesn't work after adding Cloudflare DNS

Where exactly do you run the HTTP request? When you connect to that API or when you update the database?

Assuming that API is not yours, you will have to go the HTTP route however then Cloudflare won’t be involved - or was involved before either, but you won’t be able to control the security settings.

What you essentially need to do is debug that and find where it breaks.

I run http when I connect to that api. And the api is actually mine from another server
So is there a way to configure this and make it works?
Thank you so much for your responses and your help

Any way to avoid HTTP?

If not, you could try to access the other server via its actual IP address instead, going around Cloudflare.

Ok, I got it.
But there is no way to fix it but adding record for example, right?

You can add an unproxied record.

Essentially you can

  • add an unproxied record.
  • adjust your security level.
  • whitelist the address.
  • connect via the IP.
  • switch away from HTTP.

Thank you for this complete answer.
Can you provide me more information about the unproxied record to add? which record should it be? with which name? and which ip? thank you

Any record you want and the IP address obviously has to be the same one as before. You could even unproxy the original record, just keep in mind this will not hide the IP address behind Cloudflare any longer.

I don’t understand which IP you are talking about? server’s or api’s?
And what original record are we talking about?

The original record you are connecting to.

And if I want to whitelist the address as you said, I have to add in IP access Rules the address of the api I use in my code?


Hi, I added my api’s IP in whitelist yesterday.
I also talked with my host that said they allowed access on the server side.
But still I have the same problem today when trying to execute my cron job.

I’d like to add the record, but I still ont understand how and what record I should add to make it work, please help me for that and provide me some explanations. I am really lost on this…

Just switch the record from :orange: to :grey:

But which record? My cron job is configured from my cpanel host, I dont have any record about it for now.
So Im really confused about what record to add and which value to set

The DNS record. The one where you connect to.

The one I connect to my site? you mean the @ record? this one I have to turn to non proxy?
And then my name server still be cloudflare? Is cloudflare still be propaged my website?

If you connect to @, then yes, you need to unproxy that. And no, your site won’t be on Cloudflare anymore as you unproxied it.

So I understand there is no way to stay on cloudflare and make this cron job work, thats right?

I addressed this under Cron job doesn't work after adding Cloudflare DNS

This topic was automatically closed after 14 days. New replies are no longer allowed.