# Hello InfinityFree Support, I am hosting my PHP website on InfinityFree. My website needs to connec

**URL:** <https://forum.infinityfree.com/t/hello-infinityfree-support-i-am-hosting-my-php-website-on-infinityfree-my-website-needs-to-connec/121504>\
**Category:** Hosting Support\
**Created:** [October 22, 2026, 10:42am UTC](https://forum.infinityfree.com/t/hello-infinityfree-support-i-am-hosting-my-php-website-on-infinityfree-my-website-needs-to-connec/121504 "2026-10-22T10:42:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahulpawar](https://forum.infinityfree.com/letter_avatar/rahulpawar/32/6_449c533f586939b6e5f246632a46421f.png) [@Rahulpawar](https://forum.infinityfree.com/u/Rahulpawar)\
**Post date:** [October 22, 2026, 10:42am UTC](https://forum.infinityfree.com/t/hello-infinityfree-support-i-am-hosting-my-php-website-on-infinityfree-my-website-needs-to-connec/121504/1 "2026-10-22T10:42:29Z")

</div>

### Website URL

[https://worksurvey.great-site.net/](https://worksurvey.great-site.net/)

### Error Message

Could not connect to Google Apps Script: Could not resolve host: [script.google.com](http://script.google.com)

### Other Information

Hello Support Team,

My website is hosted on InfinityFree. I am trying to connect my PHP website to a deployed Google Apps Script Web App using PHP cURL.

The Google Apps Script URL works when opened directly in my browser and returns a successful JSON response. However, the PHP website cannot connect and reports: “Could not resolve host: [script.google.com](http://script.google.com)”.

Please check whether my hosting server can resolve [script.google.com](http://script.google.com) through DNS and make outbound HTTPS requests using PHP cURL.

Please let me know if any hosting restriction or configuration is causing this issue.

Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [October 22, 2026, 10:42am UTC](https://forum.infinityfree.com/t/hello-infinityfree-support-i-am-hosting-my-php-website-on-infinityfree-my-website-needs-to-connec/121504/2 "2026-10-22T10:42:29Z")

</div>

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.

---

<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:** [October 22, 2026, 10:42am UTC](https://forum.infinityfree.com/t/hello-infinityfree-support-i-am-hosting-my-php-website-on-infinityfree-my-website-needs-to-connec/121504/3 "2026-10-22T10:42:47Z")

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

Google Apps Script is blocked on our free hosting, so this connection won’t work from your site. The hostname isn’t misspelled, so this isn’t a typo or a DNS fault on your side.

The article on outbound connections lists Google Apps Script as a service that is blocked entirely because of abuse, even on the allowed ports. Blocked services may not resolve at all, which is why you see this error:

`Could not resolve host: script.google.com`

The article says that if the service is on the blocked list, you’ll need a different hosting provider to use it. Opening the URL in your own browser works because the block only applies to connections made from our servers.

Here is the article, including the list of blocked services and the other outbound limits:

> [@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 …

Someone else hit the same error with [script.google.com](http://script.google.com) recently, in this topic:

> [@Could not resolve host: script.google.com](https://forum.infinityfree.com/t/could-not-resolve-host-script-google-com/120412):
>
> Website URL [https://thesecretary-status.gt.tc/](https://thesecretary-status.gt.tc/)Error Message Could not resolve host: [script.google.com](http://script.google.com) It used to work, everything worked fine but now it is unable to fetch it anything Is it going to be resolved like? Is script. google. com blocked on free hosting? WHY IT USED TO BE working? Is there currently a DNS resolver problem on this server? Can the domain be allowed, or is there another supported way to connect to Google Apps Script? Console Error: app.js?v=2.2.2:265 [The Secretar…

---

<div class="post-metadata">

**Author:** ![dan3008](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dan3008/32/68577_2.png) [@dan3008](https://forum.infinityfree.com/u/dan3008)\
**Post date:** [October 22, 2026, 11:25am UTC](https://forum.infinityfree.com/t/hello-infinityfree-support-i-am-hosting-my-php-website-on-infinityfree-my-website-needs-to-connec/121504/4 "2026-10-22T11:25:36Z")

</div>

Welcome to the forum.

As is stated in the link Lemni shared, [script.google.com](http://script.google.com/) is blocked. This is a fairly recent change. But not one that’s going to be reversed

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [October 29, 2026, 11:26am UTC](https://forum.infinityfree.com/t/hello-infinityfree-support-i-am-hosting-my-php-website-on-infinityfree-my-website-needs-to-connec/121504/5 "2026-10-29T11:26:11Z")

</div>

Closed on October 29, 2026, 11:26am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
