Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Fake CAPTCHA (ClickFix) overlay on your site: how to find and fix it

OPS-146High impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

ClickFix is a social engineering trick. A page shows a box that looks like a Cloudflare, Google or similar human check. Instead of asking you to click pictures, it asks you to press Win+R (or open a terminal), paste, and press Enter. The page has already copied a hidden command to your clipboard. That command downloads malware, often an info-stealer.

Why it costs you leads or sales

The overlay sits on top of your page, so visitors cannot use your form, checkout or call button. Those who do follow the instructions may infect their own devices, which harms your customers and your reputation. Browsers and security vendors may also flag the domain, which can bring red warning screens and drops in ad and search traffic.

Where the funnel breaks
  1. Ad or search clickVisitor arrives
  2. Landing page loadsInjected script runs
  3. Fake CAPTCHA overlayCovers the page and asks for a paste command
  4. Form or checkoutCannot be reached
  5. Lead or saleNever happens

The overlay appears before visitors can reach the form.

An overlay blocks the button

The fake check sits over your call to action, so clicks never reach it.

How to check if your site has it

Do not follow any on-screen instructions while testing. Never paste anything the box gives you. Use a separate browser profile or a device you do not use for admin work.

Check for the overlay
  1. Load key pages in a clean browser

    Open your homepage, top landing pages and checkout in a private window with no extensions. Try desktop and mobile, and arrive from a Google search result or an ad link, because some hacks show only to certain visitors.

  2. View the page source

    Right-click, choose View page source, and search for words such as 'verify', 'human', 'clipboard', 'navigator.clipboard', 'execCommand', 'powershell', 'mshta' and 'atob('. Look for script tags from domains you do not recognise.

  3. Check the Network tab

    In Chrome DevTools, open Network, reload, and sort by domain. Look for scripts loaded from unfamiliar hosts.

  4. Review your tag managerGoogle Tag Manager

    In Google Tag Manager, open each container and look for Custom HTML tags you did not create, and check the version history for recent unknown publishes.

  5. Check files and users

    Look for recently modified theme or plugin files, unknown admin users and unexpected scripts in header or footer settings.

Search a site backup or server for typical ClickFix stringsbash
grep -rIlE "navigator\.clipboard|execCommand\('copy'\)|powershell|mshta|atob\(" wp-content/ --include=*.php --include=*.js --include=*.html

How to fix it

Clean up and close the hole
  1. Take a backup and put the site in maintenance mode

    Keep a copy of the infected state for investigation, then limit visitor exposure while you clean.

  2. Find the injection point

    Check theme header and footer files, the database (for example options and posts containing script tags), tag manager containers, third-party widgets and any code injection settings.

  3. Remove the malicious code

    Delete the injected script. Replace core, theme and plugin files with fresh copies from the official source rather than editing around the malware.

  4. Remove what let them in

    Delete unknown admin users, outdated or abandoned plugins, and any unknown files. Update everything else.

  5. Change every credential

    Reset passwords for admin users, hosting, FTP/SFTP, database, tag manager and your domain account. Enable two-factor authentication and regenerate API keys and salts.

  6. Get help if you cannot find it

    Ask your host to scan the account, or use a professional malware cleanup service. Reinfection usually means a backdoor was missed.

Where to look by platform
  1. Reinstall core

    Go to Dashboard > Updates and choose Re-install version, or replace wp-admin and wp-includes with fresh files.

  2. Audit plugins and users

    Under Plugins, delete anything unused or unknown and update the rest. Under Users, remove unknown administrators.

  3. Check injected code

    Review header and footer script plugins, the theme's functions.php and header.php, and the wp_options and wp_posts tables for unfamiliar script tags.

Before and after cleanup

Compromised

  • Full-screen fake human check appears
  • Unknown script loads from another domain
  • Forms and buttons are unreachable
  • Unknown admin user exists

Clean

  • Pages load with no overlay
  • Only scripts you recognise load
  • Forms and buttons work
  • Credentials changed, two-factor on

How to confirm it's fixed

Confirmation checks
  • Key pages load with no overlay on desktop and mobile, in a private window
  • Page source and Network tab show no unknown scripts or domains
  • Search results and ad landing arrivals show the normal page
  • Unknown users, plugins and tag manager tags are gone
  • Cache and CDN are purged so old infected copies are not served
  • Form and checkout complete a test submission
  • Google Search Console Security issues shows no warnings; request a review if one was raised

How to prevent it happening again

Prevention
  • Keep core, themes and plugins updated and remove unused ones
  • Use unique strong passwords and two-factor authentication on every admin login
  • Limit who can publish in your tag manager and review its change history
  • Use least-privilege roles for agencies and freelancers, and remove old accounts
  • Keep offsite backups so you can restore a clean copy
  • Add a Content Security Policy to restrict which domains scripts can load from
  • Check key pages regularly from a clean browser
Example Content-Security-Policy header (adapt to your own domains before use)text
Content-Security-Policy: script-src 'self' https://www.googletagmanager.com https://www.google-analytics.com; object-src 'none'; base-uri 'self'

How FunnelGuard handles this

FunnelGuard detects this issue only partly. Its robot visitor runs your real customer journeys on a schedule, and its cta_not_covered check may catch the overlay when something sits on top of a call-to-action button and blocks it. If that happens, you get one alert with a screenshot and a likely cause, after a second-region re-check.

What it does not do: it does not scan your files or code for malware, does not read the text of an overlay to recognise it as ClickFix, and may miss an overlay that does not cover the monitored button, or one shown only to certain visitors. FunnelGuard never bypasses CAPTCHAs or bot protection, so it cannot tell a real challenge from a fake one.

To cover the rest by hand: load key pages in a clean private window each week, review your page source and tag manager for unknown scripts, check Search Console's Security issues report, and ask your host for malware scans. A free read-only website audit is available, and the Free plan covers 1 site and 2 journeys with daily checks and no card.

What is and is not covered
SituationFunnelGuardDo by hand
Overlay covers a monitored CTA buttonMay catch via cta_not_coveredStill clean the site
Overlay appears elsewhere on the pageNot detectedVisual check in a clean browser
Injected script in files or tagsNot scannedSource review, host scan
Shown only to some visitors or regionsMay missTest from search and ad arrivals

A ClickFix overlay often comes with other signs of compromise, such as injected popups, rogue admin users, backdoor files and Safe Browsing warnings. Work through those too before you consider the site clean.

Questions people ask

What is a ClickFix fake CAPTCHA?

It is a fake 'verify you are human' box that tells you to press keys and paste a command into the Run dialog or a terminal. The page has secretly copied a malicious command to your clipboard, so following the steps installs malware. Real CAPTCHAs never ask for this.

Why is my website showing a fake CAPTCHA I did not add?

A script has almost certainly been injected into your site. Common routes are an outdated plugin or theme, a stolen admin or hosting password, or a malicious tag in your tag manager. Treat it as a hack and clean it up.

How do I remove a fake CAPTCHA overlay from my website?

Find the injected script in your theme, database, code injection settings or tag manager, and remove it. Replace core, theme and plugin files with clean copies, delete unknown users, and change all passwords. Then purge caches and re-test in a clean browser.

Is it dangerous to visit my own site if it shows a fake CAPTCHA?

Viewing the page is usually fine, but never follow the instructions or paste anything. Test in a private window on a device you do not use for sensitive work, and never run the copied command.

Can I see the fake CAPTCHA only on some devices or from Google?

Yes. Attackers often show malicious code only to certain visitors, such as those from search or ads, on mobile, or in particular countries. Test from those routes rather than typing the URL directly.

Will Google or Chrome warn people about my site?

They can. If the site is flagged, visitors may see a red warning screen and Search Console may list a security issue. After cleaning, fix the cause and request a review in Search Console.

Can FunnelGuard detect a ClickFix overlay?

Only partly. Its cta_not_covered check may catch the overlay if it covers a monitored call-to-action button. It does not scan code for malware or recognise the overlay's text, so you still need manual checks.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: cta_not_covered may catch.

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.