HTTP Service Forbidden 403

I am trying to send a message from roblox to discord, however it isn’t working.
I keep getting this error:
image

My current code is:

local http = game:GetService("HttpService")
local Data = {
	["content"] = "Hey! This is a message sent from roblox!"
}

Data = http:JSONEncode(Data)

http:PostAsync("My Webhook Here", Data)

i have httpservice enabled, and I am testing in Roblox, not studio.

1 Like

Discord has blocked requests from Roblox since a few hours ago. Unfortunately it looks like you will need a proxy if this isn’t temporary.

5 Likes

Yes, i was wondering why im not getting any logs from my game
like exploit logs and stuff!
image

Yeah, roblox seems to have blocked discord.com requests since a couple hours ago. For some weird reason they’re not blocked from studio but they’re blocked in-game.

Anyways heres a temporary solution I found (this solution doesn’t work anymore):
Instead of using discord.com/api/ in your URL, use discordapp.com/api/ instead.
This seems to have fixed the issue completely for me.

9 Likes

Studio isn’t blocked because HTTP requests are sent from your local machine, not Roblox servers.

3 Likes

Other way. Discord has blocked Roblox because of abuse purposes. People just blindly spam requests without validating their data or not following ratelimits. This is the easy solution for them. ¯\_(ツ)_/¯

Studio has a different user agent. Roblox/Linux is the user agent that Roblox servers currently use, whilst Studio is (at the time of writing) RobloxStudio/WinInet RobloxApp/0.497.0.4970359 (GlobalDist; RobloxDirectDownload).

2 Likes

thats weird they blocked discord

What’s weird is that only one of my webhooks is working, and another one isn’t. But I think I have a workaround. If they limit you to only one, then use that to your advantage. Below is an image of my workaround.

Some devs already had that option blocked, I now can’t access it through that way. Soon, that way will also become used too much and blocked for all of us.

Also having this issue. Going to see if @Enqrypted suggested solution works.

EDIT: Didn’t work. Only works in studio.

yeah seems the other url is also being blocked now. Only surefire solution would be using a personal proxy.

1 Like

well if you want to fix the roblox to discord webhook problem.
make a proxy for it.

thats what i did on the day discord blocked roblox

Hi, how would I go about doing this? I’ve looked into Apigee, but I don’t think it’s available to individuals. I have a website domain if it’d help, but I’m not sure if that has anything to do with this.

Replace discord.com with hooks.hyra.io

7 Likes

Oh wow, that works! Thank you so much!

Your welcome. Make sure not to abuse the api tho or they can block your game from sending requests.

Yeah, I’ve made it where you can only send one request per session, meaning you have to leave and rejoin to send another. Is this enough, or should I made it one request per 10 or so hours?

Just don’t abuse the system. I think the limit is 60 requests/min. So 1 request every second