What is a headless browser?
A headless browser is a web browser that runs without a visible window and is controlled by code. It is used for testing and automation, and often by bots.
Also called: Headless Chrome, Browser automation
How it works
A headless browser loads pages, runs JavaScript and handles cookies like a normal browser, but nothing is drawn on a screen. A script tells it where to go, what to click and what to type, usually through an automation library or a remote control protocol.
Because it runs a real browser engine, it can get through sites that block simple HTTP scripts. Many AI agents also use browser automation to act on websites.
Legitimate and abusive uses
Developers use headless browsers to test their own sites, render pages and generate screenshots or PDFs. Fraudsters use the same tools to create accounts in bulk, run credential stuffing, test stolen cards, scrape data and buy limited stock.
How it is detected
Automation tools leave traces, though attackers work to hide them.
- Automation flags, such as the webdriver property, set by the browser.
- Missing or unusual browser features, plugins, fonts or graphics output.
- Traits that contradict each other, such as a user agent that names one browser while the engine behaves like another.
- No pointer movement, perfect timing between actions, or typing that is too fast and even.
Why detection is an ongoing effort
Stealth plugins patch the most obvious signals, and some attackers drive full, non-headless browsers on real devices. Teams that only check one flag will miss them. Bot detection that combines browser, network and behavior signals, plus device fingerprinting to link repeat visits, holds up better.
Related terms
- Bot detectionBot detection is the set of methods used to tell whether a website or app visitor is a person or an automated program, and often which kind of program it is.
- Device fingerprintingDevice fingerprinting identifies a device by combining many of its traits, such as browser, operating system and hardware settings, into an ID that can recognize it on later visits.
- Credential stuffingCredential stuffing is an automated attack that tries large lists of stolen usernames and passwords on a login page, betting that people reuse the same password across sites.
- Residential proxyA residential proxy routes internet traffic through IP addresses assigned to home connections, so automated or remote traffic looks like it comes from ordinary households.
- CAPTCHAA CAPTCHA is a challenge shown to a website visitor, such as reading distorted text or picking images, meant to be easy for people and hard for automated programs.