AI on the Internet

How Sites Detect Automated Traffic

The signals websites use to separate bots from people, how scoring works, why real visitors get flagged and how to fix false alarms.

Key takeaways

  • Detection rests on combined signals, because any one of them can be wrong or imitated.
  • Network origin, protocol behavior, browser consistency, interaction patterns and account history each add evidence.
  • Sites usually respond in steps, from silent logging to rate limits, challenges and blocks.
  • False positives are common for people on shared networks, privacy tools or unusual devices.
  • The strongest protection for sensitive actions is good account security and server-side limits, with detection as a support.

Websites detect automation by combining many weak clues: where a connection comes from, how the software talks, what the browser reports about itself, how the visitor behaves and what the account has done before. No single clue proves much. Together they produce a judgment of how likely it is that a request comes from a script, and the site decides whether to allow it, slow it, challenge it or block it.

Knowing how this works helps you protect a site you run, and it explains why you sometimes get asked to prove you're human when you plainly are.

Why sites bother

Bots do both useful and harmful things. A site wants search crawlers and monitors, but not scripts trying leaked passwords, grabbing limited stock, posting spam or testing stolen cards. Automated traffic also costs bandwidth and computing power, and it can distort the numbers a business relies on.

Detection is probabilistic. A defender never sees who is at the keyboard, only the traffic. So the practical goal is to make abuse expensive while keeping friction low for everyone else.

Signals a site can weigh
Account and history Age, past behavior, failed logins, unusual purchases. Interaction Order of pages, timing, scrolling and input patterns. Browser environment Script results and whether claimed features match. Protocol Headers and connection setup that fit, or don't fit, the claimed client. Network Address, network owner, volume and reputation. Account and history Age, past behavior, failed logins, unusual purchases. Interaction Order of pages, timing, scrolling and input patterns. Browser environment Script results and whether claimed features match. Protocol Headers and connection setup that fit, or don't fit, the claimed client. Network Address, network owner, volume and reputation.

Network signals

The first clue is the source address. A site can look at which network announces it. Traffic from a data center behaves differently, on average, from traffic from home broadband, since people seldom browse from rented servers. That's only a tendency: VPNs and company gateways also come from hosting networks.

Other network clues:

  • Volume and rate from one address or one block of addresses.
  • Reputation built from past abuse reports.
  • Spread, where thousands of addresses each make a few similar requests, a sign of a botnet or a proxy pool.
  • Mismatch, such as an account that suddenly appears from a distant region.

Addresses are blunt instruments. Mobile carriers often put many subscribers behind a few public addresses through carrier-grade network address translation, so one abusive user can cast suspicion on many neighbors.

Protocol signals

Software has habits. Browsers send particular sets of headers, support particular compression methods and negotiate encrypted connections in recognizable ways. The details of a TLS handshake, such as the list and order of options the client offers, can suggest which library is connecting.

If a request claims to be a mainstream browser but connects like a basic scripting library, or omits headers that browser always sends, the inconsistency is informative. HTTP/2 and HTTP/3 settings can add similar hints.

Declared identity matters too. Honest bots name themselves in the User-Agent header, and sites can verify the major ones against published address ranges or DNS. A request that claims to be a well-known crawler but fails verification is a strong signal of deception.

Browser environment signals

A site can run JavaScript and see what comes back. A client that never runs scripts is plainly not behaving like an ordinary browser. One that does run them reveals properties such as supported features, screen characteristics and rendering behavior.

Automation frameworks used for testing may announce themselves; the web standard for browser automation provides a property that indicates when a browser is being driven by software. Detection systems also look for combinations that rarely occur on real devices.

This overlaps with browser fingerprinting, and it carries privacy costs. The same measurements that spot a script can help recognize a returning person. Sites should collect only what they need, say so in their privacy notice and limit retention.

Behavior signals

People are irregular. They pause, scroll, change their minds and arrive from varied places. Scripts often show patterns such as:

  • requests at machine-even intervals or faster than anyone reads;
  • no images, fonts or stylesheets requested alongside pages;
  • long, exhaustive walks through numbered URLs;
  • forms submitted almost instantly after loading;
  • many accounts doing the same unusual sequence;
  • requests for hidden links or fields that a person would never see (a honeypot).

Honeypots need care so that screen reader users don't encounter and fill the hidden field. Label and hide it properly.

None of these is conclusive. Someone using a password manager fills a login instantly, and a keyboard user moves nothing with a mouse.

Account and business signals

For logged-in or transactional sites, history is often the best evidence. A cluster of new accounts sharing details, a login after many failures, a payment method tried repeatedly or an order pattern that matches past fraud can matter more than anything about the browser.

This is where defenses against credential stuffing live: per-account attempt limits, checks of new passwords against known leaked ones, and support for passkeys and other strong sign-in methods. These work even when a bot imitates a browser well.

Reading signals together: a hypothetical case

Say a small shop sees hundreds of login attempts overnight. Each address tries only two or three passwords, so a per-address limit never triggers. The requests come from home broadband networks in many places, which looks ordinary on its own.

Other layers tell a different story. The requests claim to be a common browser but never load the page's stylesheet or run its script. They post straight to the login endpoint without visiting the form first. Most usernames don't exist on the site. And the overall failure rate has jumped far above its usual level.

No single item would justify blocking a visitor. Together they point clearly to a distributed password-guessing run using leaked lists. A proportionate response is to require a challenge on login while the spike lasts, enforce per-account limits, check successful logins from the period for signs of takeover and prompt affected customers to reset passwords and add a second factor.

The same shop shouldn't conclude that every customer on those broadband networks is hostile. Once the run ends, the extra friction should come off.

Where detection runs

Checks can happen at several points. A content delivery network or reverse proxy sees every request first and can act before your server does any work. The web server can apply simple limits. Application code knows the most about accounts, carts and prices, so it is the right place for business rules. Scripts in the page gather browser and interaction signals, but anything computed on the visitor's device can be tampered with, so the server has to treat it as a hint and verify any tokens itself.

Server logs remain the simplest starting point. They show request rates, paths, status codes and declared user agents without any extra tracking of visitors.

From signals to action

Most systems combine clues into a score, using hand-written rules, statistical models or both. The response is graduated.

How a request might be handled
1 Collect clues Network, protocol, browser, behavior and account data. 2 Check allowlists Verified crawlers and partners follow their own rules. 3 Score the risk Rules or models combine the evidence. 4 Respond in proportion Allow, rate limit, challenge, require sign-in or block. 5 Learn from outcomes Appeals, fraud reports and errors tune the rules. Collect clues Network, protocol, browser, behavior and account data. 1 Check allowlists Verified crawlers and partners follow their own rules. 2 Score the risk Rules or models combine the evidence. 3 Respond in proportion Allow, rate limit, challenge, require sign-in or block. 4 Learn from outcomes Appeals, fraud reports and errors tune the rules. 5
Risk level Typical response Cost to real visitors
Low Serve normally None
Uncertain Log, rate limit or run a silent browser check Small delay
Elevated Visible challenge or extra verification Noticeable friction
High Block or deny the action Severe if wrong

The same visitor may be allowed to read articles but challenged at checkout, because the potential damage differs.

Why you might get flagged

If a site keeps challenging you, likely causes include:

  • a shared address on a VPN, public Wi-Fi, office gateway or mobile carrier;
  • blocked scripts or cookies, so the site can't remember you passed;
  • an outdated browser, or an extension that rewrites headers;
  • a wrong system clock, which can break secure checks;
  • many tabs or rapid refreshing;
  • another device on your network that's infected and sending abuse.

Try one change at a time: update the browser, allow scripts and cookies for that site, disable extensions, switch off the VPN briefly or try a different network. If challenges follow your home connection everywhere, scan your devices and check your router's firmware. Contact the site's support with the time and any reference code shown on the block page.

Why false positives matter

A blocked bot is a success. A blocked customer is a cost that rarely shows up in a security report, because people who can't get in usually just leave. Those most likely to be misjudged include people using screen readers or keyboard-only navigation, people with strict privacy settings, travelers, users of older phones and those in regions where many households share a few addresses.

Check for this deliberately. Look at how many challenged visitors give up, whether complaints cluster around particular browsers or networks, and whether automated decisions can be appealed to a person. If a rule blocks far more people than abuse, retire it.

Advice for site owners

  1. Protect the expensive and sensitive paths first: login, signup, password reset, search and checkout.
  2. Put hard limits in server code, keyed to accounts as well as addresses.
  3. Allow verified crawlers you want, and verify them properly.
  4. Start new rules in monitoring mode and measure false positives.
  5. Offer an accessible alternative to every challenge and a way to report mistakes.
  6. Keep detection data minimal and time-limited.
  7. Prefer making abuse unprofitable: limits per customer, queues for releases, delayed fulfillment for review.

A web application firewall or a CDN's bot features can do much of the measuring. Treat their scores as advice you can tune. And remember that AI browser agents acting for real customers blur the line between person and program, so decide deliberately which automated actions your site accepts and say so in your terms. An official API for legitimate automation often reduces the incentive to scrape at all. For the visitor-facing side of challenges, see why CAPTCHAs keep changing.

Written for 4Internet with AI writing tools and not reviewed line by line by a person. Check anything you rely on with the maker, provider or standard concerned. Report an error.

Keep reading

All 45 articles in AI on the Internet →

Latest news on this topic