Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ifconfig.co returning Cloudflare JS protection page #29

Open
cyounkins opened this issue Dec 11, 2022 · 5 comments
Open

ifconfig.co returning Cloudflare JS protection page #29

cyounkins opened this issue Dec 11, 2022 · 5 comments

Comments

@cyounkins
Copy link

Recently ifconfig.co has been returning the Cloudflare javascript-based bot protection page. The issue is described here: mpolden/echoip#163

For me setting IPCHECKER=ipify.org fixed it. I had UPDATE_FREQUENCY=120000 (2 minutes) but I'm going to double it.

Thank you for this project!

@sjmayotte
Copy link
Owner

I noticed this as well. Thanks for contributing. I'll plan to update the docs

@cyounkins
Copy link
Author

Unfortunately with ipify.org I frequently get ECONNRESET errors. I've been meaning to make a code change to make it more tolerant of transient errors, but I haven't gotten around to it.

@sjmayotte
Copy link
Owner

Good to know. Welcome your contribution whenever you have time.

@sjmayotte
Copy link
Owner

https://ifconfig.me/ is another service that might work

@shawngmc
Copy link

shawngmc commented Mar 9, 2023

I've been getting the same ifconfig.co error. I'm going to try ipify.org for now, but I did a few minutes of digging.

A faster and more reliable way may be to use DNS against OpenDNS. See https://unix.stackexchange.com/questions/22615/how-can-i-get-my-external-ip-address-in-a-shell-script, but an example using dig would be:

dig @resolver4.opendns.com myip.opendns.com +short -4

It might also be viable to have some fallback mechanisms (if the 'preferred' isn't available, try another). This bit me in the butt recently; to be fair, if I had notifications set up, I'd have been able to fix it sooner, so that's on me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants