How to hide discord webhooks

Solution for How to hide discord webhooks
is Given Below:

I have a website that sends data to my discord webhook and people keep finding my webhook and messing with my server. This is the piece of code that contains my webhook:

function sendMessage2() {
  var request = new XMLHttpRequest();
  request.open("POST", "WEBHOOK HERE");

  request.setRequestHeader('Content-type', 'application/json');

  var params = {
    username: "My Webhook Name",
    avatar_url: "",
    content: document.getElementById("userInput").value
  }

  request.send(JSON.stringify(params));
} 

I know that I could obfuscate it but they could simply use a deobfuscation tool and find it once again.

Since javascript gets send to the client in order to be executed you wont be able to fully hide it, the only way to hide it is by using a normal dedicated server where you send your data to, in this normal server you can filter out any things you dont want and from your normal server you call your discord webhook