Fed up with your blocking system
# support
z
I can not find a way to block calls i got 25k spam calls i just need a solution this is really fursrated
v
I'm sorry for your frustration. Here’s a simple way to block spam calls using Node.js/Express—just check incoming numbers against your spam list and reject them:
Copy code
js
import express from "express";
const app = express();
app.use(express.json());

const spamNumbers = new Set(["+11234567890", "+15558675309"]); // Add your spam numbers here

app.post("/webhooks/vapi", (req, res) => {
  const incomingNumber = req.body?.call?.from?.phoneNumber;
  if (incomingNumber && spamNumbers.has(incomingNumber)) {
    return res.json({ error: "Sorry, your number is blocked due to spam reports." });
  }
  // Allow legitimate calls to proceed
  res.json({ assistant: { firstMessage: "Hi there! How can I help you today?" } });
});

app.listen(3000, () => console.log("Server listening on port 3000"));
Replace the numbers in
spamNumbers
with your own list. This will block known spam calls before they reach your assistant.
For more details, see the [Vapi spam call rejection guide](https://docs.vapi.ai/server-url/spam-call-rejection). Source: - [Spam call rejection – Vapi Documentation](https://docs.vapi.ai/server-url/spam-call-rejection)
c
Hi Zayan, I understand the frustration here. Currently, spam calls need to be blocked before they reach Vapi. Recommended approach: 1. Configure Twilio spam-detection add-ons (e.g. Nomorobo, Whitepages, Marchex) in your Twilio Console. 2. Point your Twilio number to a middleware webhook instead of directly to Vapi. 3. In that middleware: - Evaluate spam signals (add-on scores, STIR/SHAKEN via
StirVerstat
) - Reject spam calls with
<Response><Reject/></Response>
- Forward legitimate calls to Vapi’s webhook:
https://api.vapi.ai/twilio/inbound_call
4. Update your Twilio number’s webhook URL and test with known spam/legit calls. At the moment, Vapi does not have built-in inbound spam filtering, so filtering must happen at the Twilio level or via custom middleware. Let us know if you want help validating your setup or testing the flow. Best, Kyle Vapi Support
z
Thanks for Information but I found better solution here https://www.unitzero.tech/blogs/block-spam-calls-on-vapi
n
Here is a video of a training session I did a few weeks ago:

https://www.youtube.com/watch?v=dnPe-Xhe_UQ

It shows how to implement a simple white/black list tool, using Cloudonix and Retell - but can be applied to VAPI and other engines as well.