Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Form action points to another domain: browser warning fix

CNV-059Medium impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Every HTML form has an action attribute. It is the web address that receives the data when someone clicks submit. If that address is on a different domain from the page, the form is a cross-domain form.

Cross-domain forms are often normal. Many CRMs and email tools give you a form that posts to their servers. The problem starts when the target is unexpected, old, misspelled, or not secure. Browsers can then show a warning, such as a message that the information you are about to send is not private, or a Safe Browsing style flag on the destination. Security plugins and ad platforms may also treat the page as suspicious.

Why it costs you leads or sales

Visitors who see a browser warning on a form usually stop. Even without a warning, a flagged destination can break the submission: the browser may block the post, or the other server may reject it. You then lose the lead and often never see an error, because it happens in the visitor's browser.

Where a flagged cross-domain form loses the lead
  1. Ad or search clickVisitor lands on your page
  2. Fills in formDetails entered
  3. Submit to other domainBrowser warns or blocks the post
  4. Lead in inbox/CRMNever arrives
  5. Thank-you page and conversion tagNever reached

The visitor reaches the form but the submission never completes.

Form completions with and without a warningExample numbers
Form completions with and without a warning (example)No warning: 40 submissions per 100 form starts; Browser warning shown: 12 submissions per 100 form starts015314012No warningBrowser warning shownsubmissions per 100 form starts

Example: illustrative numbers only, showing how a warning on submit could cut completions.

How to check if your site has it

Find the form action by hand
  1. Open the page with the form

    Use a normal browser window, not logged in as admin if you can, so you see what visitors see.

  2. Inspect the form

    Right-click the form, choose Inspect, and look for the <form> tag. Read the action="..." value.

  3. Compare the domain

    Is it your domain, or a tool you use on purpose (your CRM, email platform or form builder)? Is it https?

  4. Watch the Network tab

    Open DevTools, go to Network, tick Preserve log, and submit a test entry. Look at where the POST request goes and its status.

  5. Check the page source

    Search the source (View page source) for <form and action= to find hidden or extra forms, including ones added by scripts.

List every form action on the page (paste in the DevTools console)javascript
document.querySelectorAll('form').forEach((f, i) => {
  const a = f.action || '(none)';
  const cross = a.startsWith('http') && new URL(a).host !== location.host;
  console.log(i, a, cross ? 'CROSS-DOMAIN' : 'same domain');
});

How to fix it

First decide which case you are in. If the domain is a service you set up on purpose, make sure it is secure (https) and current. If it is unknown, old or mistyped, replace it.

Common causes and what to do
CauseSignFix
Injected or malicious codeDomain you do not recogniseRemove the code, scan the site, change passwords, update plugins
Old form tool or CRMDomain of a service you stopped usingReplace the form with a current embed or endpoint
Typo or copied test URLStaging or misspelled domainCorrect the action URL
Insecure targetAction starts with http://Change to https:// or use a different endpoint
Intended third-party formKnown tool, httpsKeep it, and test that it still delivers
Fix the form action by platform
  1. Find where the form lives

    Check your form plugin (Contact Form 7, WPForms, Gravity Forms and others) or a Custom HTML block. Most plugins post to your own site by default.

  2. Remove custom actions

    Look for custom HTML, theme files or snippets plugins that set a different action. Delete or correct them.

  3. Scan for tampering

    Run a security scan, update plugins and themes, and remove any you do not recognise.

A form posting to your own endpoint over httpshtml
<form action="/contact/submit" method="post">
  <input type="email" name="email" required>
  <button type="submit">Send</button>
</form>
Form action before and after

Before

  • Action points to an unknown or old domain
  • Browser may warn or block the post
  • Leads missing from inbox and CRM

After

  • Action points to your site or a trusted https service
  • No warning on submit
  • Test lead arrives and the thank-you page loads

How to confirm it's fixed

Confirmation checklist
  • The console snippet shows only domains you recognise
  • Every form action starts with https
  • A test submission shows no browser warning
  • The POST in the Network tab returns a success status
  • The test lead appears in your inbox and CRM
  • The thank-you page and conversion tags still fire

How to prevent it happening again

Prevention habits
  • Keep a list of the form tools and domains you approve
  • Remove form embeds when you leave a tool
  • Limit who can edit theme code, tag containers and custom code
  • Keep plugins, themes and apps updated
  • Re-test forms after every site migration or redesign
  • Run scheduled checks on your key forms

How FunnelGuard handles this

FunnelGuard detects this issue only partly. Its robot visitor runs your real form journey on a schedule and collects redirect and cross-domain evidence, so it can show when a submission goes to a different domain than expected. A failed check is re-checked from a second region before one alert goes out, with a screenshot and a likely cause.

Questions people ask

Why does my form say it is submitting to another site?

The form's action attribute points to a different domain from your page. This is normal if you use a CRM or form tool that hosts the endpoint. It is a problem if you do not recognise the domain, because it may come from old code or an injection.

Is it bad if my form action goes to another domain?

Not always. Many trusted tools receive form data on their own servers over https. It becomes a risk when the domain is unknown, outdated, or uses http, because browsers may warn and the data may be exposed.

How do I find where my form sends its data?

Right-click the form, choose Inspect and read the action attribute on the form tag. You can also open DevTools, go to the Network tab, submit a test entry and see which address receives the POST request.

Why does Chrome warn that my form is not secure?

Chrome warns when a form sends data over http instead of https, or when the destination is flagged as unsafe. Change the action to an https address, and replace any destination you do not trust.

How do I change a form's action URL?

It depends on your platform. In custom HTML, edit the action attribute. In WordPress, Shopify, Webflow, Wix or Squarespace, edit the form block or any custom code or embed that sets a different action, or switch to the built-in form.

Could a hacker have changed my form action?

Yes. Attackers sometimes inject code that redirects form data to their own server. If the domain is unknown, scan the site, remove the code, update plugins, and change your passwords.

Can FunnelGuard tell me if my form posts to a flagged domain?

Only partly. FunnelGuard checks redirects and cross-domain evidence during your form journey, but it does not read browser security verdicts or scan for malware. Check form actions by hand as well.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: redirects/cross-domain evidence.

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.