Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Under-attack / JS challenge page shown to all visitors: fix

PRF-075High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

An under-attack or JS challenge page is a screen shown before your real page loads. The visitor's browser has to run a small piece of JavaScript, or solve a check, before the server lets them through. It is meant to stop floods of bot traffic (DDoS attacks).

It becomes a problem when it applies to all visitors, all the time. Common sources are Cloudflare's Under Attack Mode, a WAF rule set to "JS Challenge" or "Managed Challenge" on every request, and host-level or plugin-level bot protection with strict settings.

Why it costs you leads or sales

Every visitor waits several seconds on a blank interstitial before seeing your offer. Some leave. Others never get through at all: people with JavaScript disabled, older browsers, privacy tools, some in-app browsers and some corporate networks.

Paid traffic suffers most. You pay for the click, but the visitor may bounce before your page, and your tracking tags, loads. Ad and analytics platforms then see fewer sessions and conversions, which can distort your reporting and bidding. Form posts, webhooks and payment callbacks can also be challenged and fail silently.

Where the challenge breaks the funnel
  1. Ad clickVisitor arrives from a paid or organic link
  2. Challenge page"Checking your browser..." shown to everyone
  3. Landing pageNever seen by those who leave or fail the check
  4. Tracking tagsDo not fire without the page
  5. Form or checkoutNo lead or sale

The challenge sits in front of everything, so every later step is at risk.

Visitors reaching the landing pageExample numbers
Visitors reaching the landing page (example)Challenge off: 97 visitors out of 100; Challenge on for all: 78 visitors out of 100037749778Challenge offChallenge on for allvisitors out of 100

Example: illustrative numbers only. A blanket challenge loses people who abandon or fail the check.

How to check if your site has it

Check for a blanket challenge
  1. Open the site in a private window

    Use a clean browser with no cookies. Look for "Checking your browser before accessing", "Just a moment..." or "Verify you are human" before the page loads.

  2. Try another device and network

    Test on mobile data, not only your office Wi-Fi. A challenge that only appears for some networks points to a rule rather than a global mode.

  3. Check the response headers

    Run the command below. A 403 or 503 status with a cf-mitigated: challenge header means Cloudflare is challenging the request.

  4. Review your security dashboard

    In Cloudflare, check Security level (Under Attack) and Security > Events for challenge actions. Check your host's firewall or bot settings too.

Look at the status and headersbash
curl -sI https://www.example.com/ | head -n 20
# Signs of a challenge: HTTP 403 or 503, 'cf-mitigated: challenge', 'server: cloudflare'

How to fix it

Remove the blanket challenge
  1. Confirm the attack is over

    Check your traffic and server load. If you were attacked recently, keep some protection but make it targeted (step 3).

  2. Turn off Under Attack ModeCloudflare

    In Cloudflare, go to Security > Settings and set Security Level to Medium or Low. The old name for this option is Security Level, which may show as "I'm Under Attack".

  3. Replace it with targeted rules

    Under Security > WAF > Custom rules, challenge only what is risky: a login path, a high-rate IP range, or a country that sends only abuse. Avoid a rule that matches all requests.

  4. Add rate limiting instead of a global challenge

    Limit requests per IP on sensitive endpoints such as /wp-login.php or form posts, rather than every page.

  5. Let trusted services through

    Allow payment gateway webhooks, your CRM and your monitoring tools by IP or path with a skip or allow rule, so they are not challenged. Do not try to get around a service's own terms.

Where to look on your platform
  1. Check security plugins

    In Wordfence, Sucuri, or similar plugins, look for firewall or country-challenge settings that apply to all traffic and loosen them.

  2. Check your host

    Managed hosts often have a bot protection or Cloudflare toggle in their dashboard. Turn off any "under attack" option.

Blanket challenge vs targeted protection

Before

  • Every visitor sees "Checking your browser"
  • Ad clicks wait or bounce
  • Webhooks and form posts may be blocked
  • Tracking tags load late or not at all

After

  • Normal visitors go straight to the page
  • Only risky paths or traffic are challenged
  • Trusted services are allowed through
  • Tags and forms behave normally

How to confirm it's fixed

Confirmation checklist
  • A private window loads your landing page with no interstitial
  • Mobile data and a second network load it normally
  • curl returns 200 and no cf-mitigated header
  • A test form submission reaches your inbox or CRM
  • Your ad landing URL with UTM parameters loads directly
  • Analytics real-time view shows the visit
  • Security > Events shows challenges only on the paths you chose

How to prevent it happening again

How it usually goes wrong
  1. Day 1

    Traffic spike or attack. Someone turns on Under Attack Mode.

  2. Day 2

    Attack stops, but the setting stays on.

  3. Week 2

    Leads and ad conversions drift down. Nobody connects it to the challenge.

  4. Week 3

    Someone opens the site in a clean browser and sees the interstitial.

Habits that prevent it
  • Write down who turned on Under Attack Mode, when, and when it must be reviewed
  • Set a reminder to turn it off after an incident
  • Prefer path-specific rules and rate limits over a global mode
  • Allow payment, CRM and monitoring traffic explicitly
  • Test the landing page from a clean browser after any security change
  • Monitor the key journeys on a schedule

How FunnelGuard handles this

FunnelGuard detects this today. Its robot visitor runs your real journeys on a schedule, and when a challenge page blocks it, the check is reported as bot protection. You get one alert (email, Slack, Teams, WhatsApp, webhook or PagerDuty) after the failure is re-checked from a second region, with a screenshot and a likely cause.

Questions people ask

Why does my website show "Checking your browser before accessing" to everyone?

This is usually a JavaScript challenge from Cloudflare or a similar firewall. If it appears for all visitors, Under Attack Mode or a rule that matches every request is probably on. Lower the Security Level and scope challenge rules to risky traffic.

How do I turn off Cloudflare Under Attack Mode?

In the Cloudflare dashboard, open Security > Settings and change Security Level from "I'm Under Attack" to Medium or Low. Also check Security > WAF custom rules for rules that issue a JS or Managed Challenge on all requests.

Does a JS challenge page hurt my ad conversions?

Yes, it can. Visitors wait or leave before your page loads, and tracking tags may never fire, so platforms record fewer sessions and conversions. You still pay for the click.

Is the Under Attack page bad for SEO?

It can be if it is shown for long periods. Search crawlers may get challenged or slowed, and users bounce. Turn it off when the attack ends and use targeted rules instead.

Why do form submissions fail when bot protection is on?

A challenge or WAF rule can block the form's POST request or the webhook that passes the lead to your CRM. The visitor sees the form submit, but nothing arrives. Check your security events for blocked requests on the form path.

How can I tell if only bots or all visitors see the challenge?

Open the site in a private window on mobile data and on a second network, and check the response with curl. If real browsers see it too, it is global. Cloudflare's Security > Events shows which rule issued the challenge.

Can monitoring tools get past a challenge page?

They should not try to bypass it. FunnelGuard, for example, reports the block as bot protection instead of getting around it. Allow the monitor's marked traffic with a rule you control if you want it to test the real journey.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: reported as bot protection.

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.