Resources

The Role of Client-Side Protection in Combating Online Fraud

The Role of Client-Side Protection in Combating Online Fraud

Most pages on this topic list six or seven browser controls and let the reader believe fraud is a browser problem. It is not. Fraud is a business problem that happens to show up in the browser, and the most useful client-side controls are the ones the site owner runs, not the ones users are asked to remember. An INTERPOL financial fraud assessment from 2024 says organized crime groups are using artificial intelligence and digital currencies to target victims more effectively, in schemes like investment fraud, advance payment fraud and business email compromise. Client-side protection reduces some of that exposure. It does not close it.

Controls

Client-side protection means defenses on the user’s device or in the browser, rather than only on the server. Modern web apps push more and more code to the client, including third-party scripts for analytics, chat and payments, and that code is the attack surface. Attackers go after it to steal data, hijack sessions or turn devices into bots, the family of client-side attacks vendors like Imperva describe.

Six controls are usually named. Authentication and authorization (multi-factor logins, session cookies, tokens) keep a stolen device or session from being used for fraudulent transactions. Encryption of data at rest and in transit does not stop theft, but it makes what was stolen useless. Browser security covers HTTPS and the habits people have of saving form data, clicking through certificate warnings and ignoring alerts. Updates close known holes in browsers and plugins before someone uses them.

Then there is input validation, and here the usual advice is wrong. Validation in the browser is a courtesy to the user, because anyone attacking the site skips the browser entirely and sends requests directly. Validation that protects you against SQL injection or cross-site scripting has to run on the server. Treat the client-side check as a usability feature and nothing more.

Six client-side controls: authentication, encryption, input validation, browser security, content security policy and updates, and what they leave uncovered

The control with the best return is the content security policy (CSP). It is a header that tells the browser which sources may load scripts, stylesheets, images and other resources, so a script injected from an unlisted domain is blocked. The catch is that a CSP is only as tight as its list. An allowlist full of broad wildcards, or one that permits inline scripts, protects very little, and the way most teams discover that is after an incident.

If you’re running a tag manager, the practical problem is knowing what is actually on your pages. Marketing adds a script, the person who added it moves to another team, and two years later nobody can say what it does or who approved it. An inventory of every script, with an owner and a reason for each, is dull work that blocks a lot of fraud.

PCI DSS made script inventory a rule

This stopped being optional for payment pages. PCI DSS 4.0.1 requirement 6.4.3 asks merchants to authorize every script on a payment page, check its integrity and keep a written justification for each. Requirement 11.6.1 asks for a mechanism that detects and alerts on unauthorized changes to those scripts and to security-relevant HTTP headers, at least weekly unless a risk analysis says otherwise. Both became mandatory on 31 March 2025.

In practice an inventory entry records:

  • which domain the script loads from
  • why the page needs it
  • who approved it
  • how its integrity is checked, for example with a subresource integrity hash

Embedding a payment provider’s iframe does not take the surrounding page out of scope.

Client-side protection or bot protection

Many fraud attempts include a bot. Bots scrape information about likely victims, create accounts in bulk, take over existing ones, and run DDoS attacks that make a real site unavailable, which pushes customers toward a phishing copy of it. That is why bot defenses and automated attacks on identity deserve their own budget line.

Client-side controls cannot see most of this, because the bot never behaves like a browser user.

What it cannot see

Client-side protection has no real control over user behavior. It does nothing about:

  • attacks on the server
  • man-in-the-middle attacks between browser and server
  • multi-stage attacks that combine a server-side flaw with a client-side one
  • insiders, such as an employee who approves a fraudulent refund

Obviously, you want server-side security, network defenses such as firewalls and intrusion detection, and training against social engineering next to it. A perfect CSP notices none of the above.

Bogdan Sandu

Stay sharp. Ship better code.

Every week: one curated article, one tool worth knowing, one tip you can use tomorrow. No noise, no padding.