Skip to content

Commit

Permalink
Merge pull request #13 from Team2530/webhook-encoding
Browse files Browse the repository at this point in the history
Encode webhook url with base64
  • Loading branch information
michael-m-2983 authored Feb 14, 2025
2 parents 417237f + 1cff266 commit d44612b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion turbo-scout/src/config/discord.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"webhook": "https://discord.com/api/webhooks/1339342757201838131/paxULbP0tjvxINlFy83JfZ9wqC2fQoYXShEkOLACp2_JURAncazJ5tZFkPH_C4VXEnH3"
"notice": "The webhook url has been encoded in base64 to prevent systems from scraping it off of github and then automatically spamming it with undesired content. This is not meant to hide the webhook, merely to prevent automated systems from finding it.",
"webhook_base64": "aHR0cHM6Ly9kaXNjb3JkLmNvbS9hcGkvd2ViaG9va3MvMTMzOTM0Mjc1NzIwMTgzODEzMS9wYXhVTGJQMHRqdnhJTmxGeTgzSmZaOXdxQzJmUW9ZWFNoRWtPTEFDcDJfSlVSQW5jYXpKNXRaRmtQSF9DNFZYRW5IMw=="
}
2 changes: 1 addition & 1 deletion turbo-scout/src/pages/share.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const methods: ShareMethod[] = [
formData.append("file", file);

const xhr = new XMLHttpRequest();
xhr.open("POST", DISCORD_CONFIG.webhook);
xhr.open("POST", atob(DISCORD_CONFIG.webhook_base64));
xhr.send(formData);
};

Expand Down

0 comments on commit d44612b

Please sign in to comment.