My PHP site makes server-side requests to a Google Apps Script web app
(script.google.com/macros/s/.../exec). It used to work, and now it fails
with “Could not resolve host”.
I ran this test script on my account (PHP gethostbyname):
google.com → resolves (142.250.117.100)
docs.google.com → resolves (142.250.117.101)
script.google.com → DNS FAILED
curl to the Apps Script URL → “Could not resolve host: script.google.com”
DNS works for other Google hosts but fails only for script.google.com.
The same URL opens fine from my phone and PC browsers, so the Apps Script
itself is working.
Is script.google.com blocked on purpose, or is this a DNS problem on the
hosting servers? If it is a DNS fault, could you check it? Thank you.
Welcome to the InfinityFree community forum! Good to have you here.
Most people answering here are volunteers. They’re often the fastest source of help. Admin (the only staff member) checks in about once a day for issues on our end.
Volunteers can’t see your account or website. Share what you actually see, like error messages and what happens when you try something. That’s more useful than your theory of what’s wrong.
AI tools often get InfinityFree wrong. If a volunteer’s advice differs from what an AI told you, please try the volunteer’s suggestion first.
Solving an issue is a joint effort. Try the suggestions you get and report back what happened.
Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look.
Yes, I think this is a deliberate block, not a DNS fault. A topic from August had the same error for script.google.com, and one reply in it says:
In short: yes, it’s permanent. Accessing script.google.com will not be possible in the foreseeable future.
That fits what you’re seeing. google.com and docs.google.com resolve and only script.google.com fails.
The topic is here, including a discussion of possible workarounds:
A similar block on Cloudflare Workers addresses was confirmed as intentional and not going to be lifted. The reason given was abuse of free hosting:
The search excerpt I got only covers that one reply. What are you using the Apps Script for (for example reading a Google Sheet, or sending data to one)? The workarounds in that topic depend on what the script does.