I hope you'll fix it!

Website URL

https://huntsite.gamer.gd

Error Message

discord api issue !

Other Information

Hello InfinityFree Support,

I’m hosting a PHP website on InfinityFree and trying to implement Discord OAuth2 login.

PHP cURL is enabled, but every request to https://discord.com/api/v10 fails with:

Could not resolve host: discord.com

Could you please confirm whether outbound HTTPS requests and DNS resolution for external APIs are supported on my hosting account?

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.

Outbound HTTPS is supported, but Discord is on our list of blocked services, so Discord OAuth2 login won’t work on free hosting.

The knowledge base article says websites can call external APIs with cURL on ports 80 and 443. It also says some services are blocked entirely because of abuse, and Discord is one of them (webhooks and bots included). For blocked services, the host name may not resolve at all. That’s why you get Could not resolve host: discord.com. It’s the same error the article lists for this case.

The article says you can upgrade to premium hosting if you need to reach these services. The other option is to use an alternative service.

Here’s the article:

Discord API is an example of what is not allowed on free hosting in general.