Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Zapier webhook URL exposed in page source: how to find and fix it

OPS-183Medium impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

A webhook is a web address that accepts data and starts an action. Zapier's Catch Hook trigger, for example, gives you a URL that looks like https://hooks.zapier.com/hooks/catch/123456/abcdef/. Anything posted to it starts your Zap, such as creating a CRM contact or sending a Slack message.

Why it costs you leads or sales

How an exposed webhook turns into lost leads
  1. Page sourceWebhook URL sits in HTML or JavaScript
  2. Bot or stranger copies itNo login needed to post
  3. Fake data floods the ZapJunk contacts, task limit used up
  4. Real leads buried or droppedSales follows up the wrong people

The leaked URL lets outsiders skip your form and write straight into your automation.

Zap tasks used in one monthExample numbers
Zap tasks used in one month (example)Real leads: 200 tasks; Fake posts: 550 tasks; Plan limit: 750 tasks0287575200550750Real leadsFake postsPlan limittasks

Example: a 750-task plan where fake posts use most of the allowance and real leads compete for what is left.

How to check if your site has it

Look for exposed hooks yourself
  1. View the page source

    Open the page with your form, press Ctrl+U (Cmd+Option+U on Mac) and search for hooks.zapier.com, webhook, hooks., api_key, token and /catch/.

  2. Check loaded scripts

    In browser DevTools, open the Sources or Network tab, search all files (Ctrl+Shift+F in Chrome) for the same terms. Many hooks live in external .js files, not the HTML.

  3. Watch the form submit

    Open the Network tab, submit a test entry and look at where the request goes. If the browser posts directly to hooks.zapier.com or your CRM, the URL is exposed.

  4. Check your tag managerGoogle Tag Manager

    In Google Tag Manager, look through Custom HTML tags and variables for webhook URLs. Use the workspace search box.

  5. Review the Zap history

    In Zapier, open the Zap's history and look for runs you did not cause: odd names, repeated payloads or bursts at night.

How to fix it

Move the webhook out of the browser
  1. Use a form plugin's own integration

    Most form plugins can send to a webhook from the server when the form is submitted (check your plugin's Integrations or Webhooks settings). That call runs on your server, so the URL is not printed in the page.

  2. Or add a small endpoint

    Register a REST route in a custom plugin that checks a nonce and the fields, then calls wp_remote_post() to the webhook. Store the URL in wp-config.php as a constant, not in the theme's JavaScript.

Node.js (Express) endpoint that hides the webhook URLjavascript
app.post('/api/lead', express.json(), async (req, res) => {
  const { name, email } = req.body || {};
  if (!name || !/^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(email || '')) {
    return res.status(400).json({ ok: false });
  }
  await fetch(process.env.ZAPIER_HOOK_URL, {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({ name, email })
  });
  res.json({ ok: true });
});
Finish the job
  1. Create a new hook

    In Zapier, change the trigger to a new Catch Hook (or create a new Zap trigger) to get a new URL. The old one is treated as leaked.

  2. Put the new URL on the server only

    Store it in an environment variable, secrets manager or config constant that is not served to browsers.

  3. Add a shared secret where you can

    Have your server send a secret header or field, and add a Zap filter step that stops runs without it.

  4. Add basic spam protection

    Add rate limiting and a honeypot field or a CAPTCHA on the form, using the CAPTCHA tool's normal setup.

  5. Clean up the damage

    Delete fake records in your CRM and review any automations that ran on them.

Where the webhook lives

Exposed

  • Form posts straight to hooks.zapier.com from the browser
  • URL visible in source and Network tab
  • Anyone can send fake leads

Hidden

  • Form posts to your own endpoint
  • Server validates, then calls the new hook
  • Browser never sees the webhook URL

How to confirm it's fixed

Confirmation checks
  • View Source and DevTools search show no hooks.zapier.com or token strings
  • Network tab shows the form posting to your own domain
  • The old webhook URL no longer triggers the Zap (test with a harmless request)
  • A real test submission still reaches Zapier, the CRM and the inbox
  • Zap history shows no runs from unknown sources after the change

How to prevent it happening again

Prevention habits
  • Never paste webhook or API URLs into theme files, tag manager HTML or page builders' custom code
  • Keep secrets in environment variables or a secrets manager
  • Search the live site for hooks.zapier.com after each launch or redesign
  • Add a secret check in the Zap so unsigned requests are ignored
  • Review Zap history and task usage monthly for odd spikes
  • Ask agencies and freelancers where webhook URLs are stored before handing over access

How FunnelGuard handles this

Questions people ask

Is it safe to have a Zapier webhook URL in my website's source code?

No, not if the hook has no other protection. Anyone can view page source, copy the URL and post data to it. Keep the URL on a server and send browser data to your own endpoint instead.

How do I hide my Zapier webhook URL?

Send the form to an endpoint you control, such as a server route or a platform backend function, and let that call the webhook. Store the URL in an environment variable or secrets manager. Then create a new Catch Hook URL so the old one stops working.

How can I tell if someone is abusing my Zapier webhook?

Open the Zap's history in Zapier and look for runs you cannot match to real form submissions, such as odd names, repeated payloads or bursts of activity. A sudden jump in task usage is another sign.

Can someone send fake leads to my Zapier webhook?

Yes. A Catch Hook has no login, so anyone with the URL can post to it. Fake leads then flow into whatever the Zap does, such as your CRM or email.

Do I need to change the webhook URL after removing it from my page?

Yes. The old URL may already be copied or stored by bots. Generate a new hook, update your server, and turn off the old trigger.

How do I find webhook URLs in my page source?

Press Ctrl+U on the page and search for hooks.zapier.com, webhook, token and api_key. Also search the loaded JavaScript files in DevTools and your tag manager's Custom HTML tags.

Does FunnelGuard detect exposed webhook URLs?

No. FunnelGuard does not check for this yet, though it is a possible future check. It does run your lead journey on a schedule and checks that test leads reach the inbox and CRM, which can show if delivery breaks.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: site safety (Stage 26, daily): Zapier / Slack / Discord webhook URLs in public code.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.