cron-job.org icon indicating copy to clipboard operation
cron-job.org copied to clipboard

[Question] Is it possible to set the remote host IP?

Open ioweb-gr opened this issue 2 years ago • 4 comments

Hi,

I'm wondering if it's possible to bypass cloudflare checks for our servers by setting the remote host IP. Similar to

curl --insecure --resolve 'example.com:443:<ip>' -L '<url>'

ioweb-gr avatar Mar 29 '22 16:03 ioweb-gr

To clarify: Do you want to connect directly to your backend host, bypassing the cloudflare proxy?

pschlan avatar Mar 29 '22 16:03 pschlan

Yes exactly.

ioweb-gr avatar Mar 29 '22 16:03 ioweb-gr

This is not possible right now, but a nice feature suggestion. Let me check what I can do.

pschlan avatar Mar 29 '22 16:03 pschlan

@ioweb-gr Now that I think about this, you can try to set the URL to https://<ip>/... (e.g. replace the hostname by the IP address) and then add a custom header with key 'Host' and Value 'example.com' in the advanced section of the cron job. That should have the desired effect, if I'm not missing something.

pschlan avatar Dec 23 '23 09:12 pschlan