Oct 13 2026

Website Cloaking and Scanner Evasion: When a Clean Scan Does Not Tell the Whole Story

Website cloaking can hide malicious redirects and scripts from scanners. Learn why selective delivery complicates detection and web integrity.
An agency receives a customer complaint: visitors are being redirected from one of its managed websites.

The hosting environment looks normal. The WAF shows no obvious incident. An administrator opens the site and cannot reproduce the redirect. A security scan returns a clean result.

For a team responsible for tens, hundreds, or thousands of websites, the immediate question is not only whether the complaint is real. It is:

What evidence shows whether different visitors receive different behavior?

Malicious web behavior does not have to appear for every visitor. Attackers can selectively expose redirects, phishing pages, injected scripts, SEO spam, or other malicious content depending on who visits the site, how they arrive, what browser they use, where they are located, or whether they appear to be an automated security system.

These techniques are commonly associated with website cloaking, conditional delivery, and scanner evasion.

They are not new. We have documented variations of selective website behavior at Quttera for more than a decade. What continues to evolve is how much information is available to decide what a particular visitor should see.

The practical consequence is important:

A clean observation establishes what was observed under those conditions. It does not establish that every visitor receives the same behavior.

TL;DR

Website cloaking and scanner evasion can cause the same website to behave differently for customers, administrators, crawlers, and security scanners.

That does not make scanning ineffective. It means a clean result should be understood as evidence of what was observed under specific conditions, not as proof that every visitor received the same experience.

For agencies, hosting providers, ecommerce teams, and platform operators, the practical response is to combine repeated observation, historical comparison, external and server-side evidence where available, and structured incident context.

The goal is simple: reduce guesswork when something cannot be reproduced and answer faster:


What changed, which websites need attention, and what should we investigate next?

Why malware would hide from some visitors

Malware that redirects every visitor is noisy.

Customers complain. Administrators can reproduce the problem. Search engines, hosting providers, security researchers, and automated scanners have more opportunities to encounter the same malicious behavior.

Selective execution gives an attacker another option.

A compromised website can evaluate the visitor and decide whether exposing the malicious behavior is worth the increased chance of detection.

Depending on the campaign, that decision can involve characteristics such as:
  • geographic location;
  • browser or device type;
  • operating system;
  • HTTP User-Agent;
  • referral source;
  • search-engine traffic;
  • cookies or previous visits;
  • session state;
  • interaction with the page.

Several conditions can also be combined.

An employee visiting the website directly from an office desktop may therefore receive the legitimate page while a customer arriving from search on a mobile device is redirected elsewhere.

The website is the same domain.

The experience is not necessarily the same.

The website can evaluate the scanner too

Website scanning is often imagined as a one-way process:

scanner → website → result

Modern web applications complicate the relationship.

The website can also observe characteristics of the system examining it.

JavaScript can expose properties of the browser environment. Servers can evaluate network, geographic, header, and session information. Referral data can show how the request arrived. Cookies and browser storage may reveal whether the visitor has been there before.

A malicious system can use those signals to make another decision:

Does this visitor resemble the person we want to attack, or the security system we want to avoid?

That makes detection an adversarial problem.

The security system is trying to determine what the website does.

At the same time, the malicious website may be trying to determine who is looking.

Security research has measured the problem

Academic research has demonstrated how practical this can be.

At USENIX Security 2021, Bhupendra Acharya and Phani Vadrevu presented “PhishPrint: Evading Phishing Detection Crawlers by Prior Profiling”.

The researchers evaluated 23 security crawlers and identified weaknesses that could reveal automated visitors through browser characteristics and fingerprinting behavior. They then deployed 20 test pages designed to exploit the weaknesses they found.

Eighteen remained accessible despite aggressive reporting to the crawler services.

The study concerned phishing detection rather than compromised business websites, but the defensive problem applies more broadly: if an attacker can distinguish an automated security visitor from the intended victim, it can decide to serve each of them something different.

Two years later, Iskander Sanchez-Rola, Leyla Bilge, Davide Balzarotti, Armin Buescher, and Petros Efstathopoulos presented “Rods with Laser Beams: Understanding Browser Fingerprinting on Phishing Pages” at USENIX Security 2023.

Their study analyzed more than 1.7 million phishing pages over 21 months. More than one in four of the analyzed pages used some form of browser fingerprinting.

Fingerprinting itself is not malicious. Legitimate websites use browser and device information for many valid reasons.

The security problem appears when the same information is used to answer a different question:

Should this visitor see the malicious experience?

Researchers examined another variation at USENIX Security 2024.

In “PhishDecloaker: Detecting CAPTCHA-cloaked Phishing Websites via Hybrid Vision-based Interactive Models”, Xiwen Teoh, Yun Lin, Ruofan Liu, Zhiyong Huang, and Jin Song Dong studied phishing sites that placed CAPTCHA challenges between automated crawlers and the actual malicious content.

Their research showed that CAPTCHA cloaking could severely reduce the effectiveness of existing detectors until the security system was able to interact with the page more like a real user.

Again, the specific research domain was phishing.

The broader lesson is about observation: reaching the correct URL does not guarantee that an automated system has been allowed to see the same experience presented to the intended target.

Quttera has documented selective website behavior for years

At Quttera, this problem is not theoretical. We have encountered variations of selective delivery repeatedly in website-malware investigations.

2016: location and browser-aware redirection

In our 2016 investigation “Traffic Redirection Malware on Website”, we analyzed a compromised WordPress website whose malicious code sent visitors through a traffic-direction system.

The destination changed according to factors including location, browser type, and other parameters.

The same compromised website could therefore produce different outcomes for different visitors.

2018: malware operating under the radar

In “Malware Under the Radar — A Forgotten Method for Malware Redirects on Websites”, we returned to the problem of traffic hijacking that website owners may fail to notice themselves.

One of the challenges was selective targeting: malicious redirects could affect visitors according to characteristics such as IP address, geography, or operating system.

This creates a frustrating incident pattern that remains familiar today:

customers report a problem that the site owner cannot reproduce.

2019: search traffic and geography as conditions

Our article “Finding and Stopping Malicious HTTP Redirection” examined the same underlying problem from another angle.

A malicious redirect does not necessarily affect every visitor. The affected customer journey can depend on factors such as device, navigation path, referral source, or other request conditions.

That distinction matters operationally. Opening the homepage directly from an administrator's own browser may not reproduce the experience reported by a customer.

2021: following behavior beyond the first page

By 2021, our research into advanced redirects increasingly focused on the behavior produced through multiple stages.

In “How Quttera's Enhanced Detection Helps Avoid Malware Redirects”, we examined scenarios in which a legitimate website loaded JavaScript from another location, that external resource introduced malicious behavior, and the visitor was ultimately redirected again.

The security question was no longer limited to whether an obvious malicious string existed in the first HTML response.

The chain of behavior mattered.

2026: explicit crawler-versus-human cloaking

Our 2026 investigation “Inside the Z-Campaign: A Modern Spam SEO Malware Operation” showed the same adversarial principle in a more recent form.

The malware inspected the visitor's User-Agent and deliberately distinguished search-engine crawlers from human visitors.

Search-engine bots could receive keyword-stuffed spam content, while human visitors could be redirected to scam or affiliate-driven destinations.
The attacker wanted both audiences to see something different.

Across these examples, the implementation changed, but the underlying strategy remained remarkably consistent:


Show the malicious behavior where it creates value, and alter or suppress it where doing so reduces the chance of detection.

Why “I checked the website and it looks fine” is weak incident evidence

An administrator naturally starts an investigation by visiting the affected website.

That is useful information.

But consider what that test actually establishes.

The administrator visited from one location, using one device and browser, through one network, with one session history, at one moment, through one navigation path.

If the malicious behavior depends on a different condition, the administrator may never see it.

The same reasoning applies to an automated scan.

A clean scan is valuable evidence about what the scanner observed. It should not be stretched into a claim about every possible visitor session.

The more useful incident statement is:

“We did not reproduce the reported behavior under these conditions.”

That keeps the investigation open to other evidence rather than prematurely concluding that the customer report was wrong.

“We already have a WAF, hosting security, and malware scanning”

For agencies, hosting providers, ecommerce teams, and platform operators, this raises an obvious question:

Why would we need another website-security layer if we already have other controls?

Because those controls answer different questions.

A Web Application Firewall primarily evaluates incoming requests and can block many attacks before they reach the application.

Hosting and server-security controls protect infrastructure and workloads.

Patch and vulnerability management reduce exposure to known weaknesses.

Code review establishes useful evidence about software before deployment.

Endpoint security protects the systems on which it operates.

A malware scan provides evidence of what it observed when it ran.

These layers are valuable precisely because they see different parts of the problem.

Outside-in website monitoring asks another question:

What is the live public asset actually serving, loading, redirecting to, and exposing when it is observed?

That becomes particularly relevant when unwanted behavior appears after deployment, arrives through an external resource, changes over time, or activates only under particular visitor conditions.

The objective is not to replace WAF, hosting security, development controls, or server-side monitoring. It is to add another source of evidence about the live website.

Why this is also a business-integrity problem

Selective malicious behavior does not have to take a website offline to cause damage.

Imagine an e-commerce store whose unwanted redirect activates only for a fraction of search or advertising traffic.

Most customers continue shopping normally.

Employees can use the website.

Availability monitoring remains green.

The hosting platform remains operational.

Yet affected sessions may be diverted away from the business.

Similar manipulation can affect:
  • checkout journeys;
  • affiliate attribution;
  • advertising traffic;
  • search visibility;
  • customer logins;
  • analytics;
  • lead-generation forms;
  • destination links;
  • brand reputation.
The first indication of compromise may therefore not be a traditional security alert.

It might be unexplained conversion loss.

It might be a customer complaint nobody can reproduce.

It might be a search result containing something the marketing team never published.

It might be a reputation warning from an external service.

The website can remain online while no longer behaving consistently for everyone who depends on it.

That is why uptime and integrity are not the same thing.

What good evidence looks like at scale

There is no practical way to emulate every visitor, device, geography, browser state, and interaction.

That should not be the objective.

The objective is to improve the evidence available when something changes.

Preserve the conditions around an incident

If a customer reports an intermittent redirect, capture more than the URL.
Useful evidence can include:

  • approximate time;
  • device and browser;
  • country or region where relevant;
  • referring page or search result;
  • destination reached;
  • screenshots;
  • sequence of actions;
  • whether the behavior repeated.
Those details may reveal the conditions that determine who sees the malicious behavior.

Observe the customer journey that matters

A homepage is not the whole website.

For ecommerce, SaaS, and lead-generation environments, important paths may include product discovery, campaign landing pages, login, forms, account areas, cart, and checkout.

If the complaint concerns one of those journeys, investigate that journey.

Compare observations over time

A single observation establishes a useful point in time.

A history adds context.

Changes in scripts, loaded resources, redirects, destinations, malware findings, reputation state, or other website signals can help distinguish an expected deployment from an unexplained deviation.

This connects directly with another principle we have discussed in our research: website risk is not binary. Useful security decisions require evidence and context rather than forcing every observation immediately into “safe” or “malicious.”

Combine evidence from different layers

External observation can show what the public website delivers.

Server-side monitoring, where available, can provide evidence about files and changes inside the protected environment.

A WAF provides another view.

Application logs, access controls, deployment history, and browser security controls provide others.

No single source invalidates the others.

The goal is to correlate them.

Make the evidence usable at portfolio scale

For an agency managing 200 websites or a platform evaluating thousands of domains, manually reproducing every customer report is not a workable operating model.

Evidence needs to become structured enough to answer questions such as:

  • Which websites changed?
  • When was the change first observed?
  • What was different?
  • Is the issue still observable?
  • Is the domain blacklisted?
  • Was an unexpected redirect detected?
  • Does the current state differ from earlier observations?
  • Which cases require human investigation?

For APIs and automated security workflows, this distinction becomes even more important.

A machine-readable result should help another system make a decision without pretending that one observation represents every possible execution path.

From client-side security to Continuous Web Integrity

In our recent article “Client-Side JavaScript Security & Web Integrity”, we explored how a website can retain its familiar visual appearance while the executable layer delivered to the browser changes underneath it.

Cloaking and scanner evasion add another dimension.

The executable surface may differ from the visible surface.

The executable or visible surface may itself differ depending on who is observing it.

That changes the operational question.

Instead of asking only:

“Does this website contain malware?”

security teams increasingly need to ask:

“What did the live website do when it was observed, what changed, and what evidence supports our assessment of its current state?”

We think of that broader discipline as Continuous Web Integrity.

The live website includes what people see, what browsers load and execute, what crawlers and automated systems receive, the destinations to which users are sent, and the history that explains how those states changed.

Turning an intermittent problem into an actionable investigation

The practical value of continuous website monitoring is not simply that it produces more scans.

It changes what happens when something goes wrong.

Return to the situation that opened this article.

A customer reports an unexpected redirect. The agency opens the website and sees nothing unusual. The hosting environment appears healthy. The WAF shows no obvious event to explain the complaint.

Without additional evidence, the team is left trying to reproduce an intermittent problem from scratch.

Was it the customer's device? An advertisement? A temporary third-party script? Malware? A compromised redirect? Something that has already disappeared?

That investigation can take hours as everyone examines the website after the reported event.

Continuous observation changes the workflow.

Instead of starting with only the complaint, the team can examine the security evidence available around the same period:

  • Was suspicious or malicious behavior observed?
  • Did website security or reputation state change?
  • Was an unexpected redirect detected?
  • Is the issue still observable?
  • Does the current result differ from earlier observations?
  • Does server-side evidence, where available, support what was observed externally?

The objective is not to recreate every possible visitor session.

It is to give incident investigators a better starting point.

For an individual website, that can shorten the path from:

“We cannot reproduce it.”

to:

“Here is what we know, here is what changed, and here is what needs investigation.”

For an agency or MSP responsible for many client websites, ThreatSign Website Security provides ongoing website monitoring so the team does not have to manually inspect every client site or wait for customers to discover problems first. Websites requiring attention can be surfaced so operational effort goes where it is needed.

For hosting providers, SaaS platforms, and security products operating at larger scale, the Quttera Security and Compliance API allows website-security and risk results to become part of existing systems and workflows instead of turning every domain into a manual investigation.

And when compromise is confirmed, continuing observation helps answer the next practical question:

Did the website return to its expected state, and has it remained there?

That is the difference between treating website security as a series of isolated checks and treating it as an ongoing operational process.

The result is not a promise that every evasive attack will always be observed.

It is something more useful for the people responsible for websites:

less guesswork, faster investigation, clearer prioritization, and evidence to work from when something does not look right.

That is what Continuous Web Integrity should ultimately deliver.

Not another dashboard to watch.

A clearer answer to:

What changed, which websites need attention, and what should we do next?
Build Web Integrity Intelligence Into Your Platform

Use Quttera’s Website Security and Risk Intelligence API to automate malware detection, blacklist intelligence, integrity analysis, compliance evidence, and machine-readable website assessment across digital assets.