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
- Page sourceWebhook URL sits in HTML or JavaScript
- Bot or stranger copies itNo login needed to post
- Fake data floods the ZapJunk contacts, task limit used up
- Real leads buried or droppedSales follows up the wrong people
The leaked URL lets outsiders skip your form and write straight into your automation.
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
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,tokenand/catch/.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
.jsfiles, not the HTML.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.comor your CRM, the URL is exposed.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.
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
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.
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 inwp-config.phpas a constant, not in the theme's JavaScript.
Send from a server-side tool
Use Shopify Flow or the app's own connector to call the webhook from Shopify's side, rather than placing the URL in theme code. Search the theme files in Online Store > Themes > Edit code for
hooks.zapier.comand remove it.
Remove direct hook calls
Delete Custom HTML tags that post to Zapier from the browser. Send the event to a server endpoint you control instead, or use a server-side GTM container if you run one.
Remove the URL from the form and custom code
Check Form settings and Project Settings > Custom Code for a webhook URL. Use Webflow's native form notifications or its Logic/integration features, or route through a server endpoint you host.
Use a workflow instead of a browser hook
Send form data into a GoHighLevel workflow and let the workflow call the webhook action, so the URL stays inside your account. Remove any webhook URLs from custom code or funnel page scripts.
Call the hook from backend code
With Velo enabled, put the
fetchcall in a backend.jsworhttp-functions.jsfile and keep the URL in the Secrets Manager. The page code calls your backend function only.
Remove the URL from code injection
Check Settings > Advanced > Code Injection and code blocks for the hook. Use the built-in form storage or integrations, or post to your own server endpoint.
Add a server endpoint
Create a route such as
/api/leadthat validates input and forwards it. Read the webhook URL from an environment variable. See the code example below.
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 });
});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.
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.
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.
Add basic spam protection
Add rate limiting and a honeypot field or a CAPTCHA on the form, using the CAPTCHA tool's normal setup.
Clean up the damage
Delete fake records in your CRM and review any automations that ran on them.
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
- View Source and DevTools search show no
hooks.zapier.comor 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
- 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.comafter 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.