# PHP cURL cannot resolve script.google.com

**URL:** <https://forum.infinityfree.com/t/php-curl-cannot-resolve-script-google-com/122032>\
**Category:** Hosting Support\
**Created:** [November 18, 2026, 3:13pm UTC](https://forum.infinityfree.com/t/php-curl-cannot-resolve-script-google-com/122032 "2026-11-18T15:13:11Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Lemni](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/lemni/32/68303_2.png) [@Lemni](https://forum.infinityfree.com/u/Lemni)\
**Post date:** [November 18, 2026, 3:13pm UTC](https://forum.infinityfree.com/t/php-curl-cannot-resolve-script-google-com/122032/3 "2026-11-18T15:13:26Z")

</div>

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

No, InfinityFree doesn’t support requests to [script.google.com](http://script.google.com). Google Apps Script is on our list of blocked services, so your site can’t reach it. That’s why the lookup fails.

The knowledge base article says blocked services may not resolve at all. You get a host name error like the “Could not resolve host” you’re seeing, and `gethostbyname()` returns the name unchanged. Your browser test works because the block only applies to connections made from our hosting servers.

The article’s advice is to use an alternative service, or to upgrade to [premium hosting](https://www.infinityfree.com/premium/) if you need access to Google Apps Script. For email, it says you can send through an external SMTP server on port 587 with STARTTLS (`tls` encryption). Port 465 won’t work. Here’s the article:

> [@Can I connect to other servers from my website? (Sockets, cURL and APIs)](https://forum.infinityfree.com/docs?topic=49348):
>
> Your website can connect to other servers, for example to call an API, load data from another website or send email through an external SMTP server. This works with functions like cURL, file\_get\_contents() and fsockopen(). However, to prevent abuse, outbound connections are limited to a small set of ports and services. Which ports can I use? Port Used for 80 HTTP 443 HTTPS 587 SMTP (sending email) All other ports are blocked. This means you cannot connect to things like: APIs …

---

_[View the full topic](https://forum.infinityfree.com/t/php-curl-cannot-resolve-script-google-com/122032)._
