pschlan / cron-job.org

cron-job.org Open Source project
GNU General Public License v2.0
1.45k stars 251 forks source link

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

Closed ioweb-gr closed 1 month ago

ioweb-gr commented 2 years ago

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>'

pschlan commented 2 years ago

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

ioweb-gr commented 2 years ago

Yes exactly.

pschlan commented 2 years ago

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

pschlan commented 8 months ago

@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.