I used to do a curl request to discord.com for a while but now it just suddenly stopped working a couple of months ago. Other domains do work (including old discordapp.com, which is deprecated), so is this some sort of manual restriction?
That’s weird that it worked a few months ago, because access to Discord from free hosting has been blocked for a long time.
I’m not quite sure when exactly did it stop working so who knows. Why was it blocked? I literally just need to fetch a @me endpoint since I use their OAuth2
Discord API is blocked due to severe abuse here. And so is Telegram.
Well, that sucks, I quite disagree that all of discord API usage would be abuse (although obviously it probably would be majority). Since it was blocked in such fashion I assume there would be no exceptions? I’ll wait for Admin’s response on this one
I too disagree that 100% of all Discord API usage is abuse. But when 95%+ of all sites that use Discord are created for the sole purpose of hosting spam bots, (and it’s not always easy to tell them apart) I hope you can understand that sometimes we have to make decisions that have collateral damage.
Also, I’m not sure exactly whether this block to Discord (and Telegram) is configured on our side, or if Discord has simply blocked the free hosting network from accessing their API.
In any case, it is technically impossible to make exceptions for this on our end for individual accounts.
Okay, thanks for the reply. I’m pretty sure it’s on your side, “Could not resolve host” would be a weird error to occur otherwise. I wouldn’t ask for account exception but rather some sort of URL path filter, instead of banning the entire domain, but yea doesn’t have to happen if it’s too much effort for a couple of people.
I workaround it by sending JS script and fetching on the client side to later send to php - luckily for me discord doesn’t seem enforce CORS which allows this to happen, mentioning in case someone is looking for solution.
A URL path filter is a lot more difficult to setup technically. Also because that would most likely require us to proxy and filter ALL outbound traffic, not just Discord traffic. Just blocking access to the discord.com domain is both simple and effective.