This is a very simple proxy for Discord webhooks made using Cloudflare workers.
There are two methods for doing so.
The latest version of this proxy (the same one in this repository) is usually published to https://cf-discord-proxy.numelon-web-services.workers.dev/.
https://cf-discord-proxy.numelon-web-services.workers.dev/?url=YOUR_DISCORD_WEBHOOK_URLYour Discord webhook URL is provided via the url query parameter. Anything that isnt a POST request with that valid parameter is rejected.
Deploying your own version of this proxy is very easy too.
-
Ensure that you have Cloudflare's Wrangler CLI tool installed.
Installing it is very simple, you can install it with npm:
npm install -g wrangler
-
Make sure you are logged in with your Cloudflare account to wrangler:
wrangler login
This will open a new browser window and prompt you to log in.
-
Deploy the proxy from this repository using wrangler:
wrangler deploy
And thats it, you're done. The deployed URL should be displayed to you in the terminal. Use it in the same way as you would use the pre-existing proxy.