ArticleslgStudy

science

Bot prevention

Bot prevention is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Bot prevention rather than just read about it. In short: Bot prevention refers to the methods used by web services to prevent access by automated processes. Types of bots Studies suggest that over half of the traffic on the internet is bot activity, of which over half is further classified as 'bad bots'.

Key takeaways

  • Bot prevention belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Bot prevention to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Bot prevention from memory before moving on to harder problems.

Reference excerpt

Bot prevention refers to the methods used by web services to prevent access by automated processes.

Types of bots Studies suggest that over half of the traffic on the internet is bot activity, of which over half is further classified as 'bad bots'. Bots are used for various purposes online. Some bots are used passively for web scraping purposes, for example, to gather information from airlines about flight prices and destinations. Other bots, such as sneaker bots, help the bot operator acquire high-demand luxury goods; sometimes these are resold on the secondary market at higher prices, in what is commonly known as 'scalping'. According to Imperva Bad Bot Report 2025, bad bots now making up 37% of all internet traffic.

Detection techniques and avoidance Various fingerprinting and behavioural techniques are used to identify whether the client is a human user or a bot. In turn, bots use a range of techniques to avoid detection and appear like a human to the server. Browser fingerprinting techniques are the most common component in anti-bot protection systems. Data is usually collected through client-side JavaScript which is then transmitted to the anti-bot service for analysis. The data collected includes results from JavaScript APIs (checking if a given API is implemented and returns the results expected from a normal browser), rendering complex WebGL scenes, and using the Canvas API. TLS fingerprinting techniques categorise the client by analysing the supported cipher suites during the SSL handshake. These fingerprints can be used to create whitelists/blacklists containing fingerprints of known browser stacks. In 2017, Salesforce open sourced its TLS fingerprinting library (JA3). Between August and September 2018, Akamai noticed a large increase in TLS tampering across its network to evade detection. Behaviour-based techniques are also utilised, although less commonly than fingerprinting techniques, and rely on the idea that bots behave differently to human visitors. A common behavioural approach is to analyse a client's mouse movements and determine if they are typical of a human.

CAPTCHA

A widely adopted method for bot defense on websites is tests called CAPTCHAs. They are commonly deployed at critical points of interaction, such as login forms, contact forms, and online transactions, where bot activity is most likely to occur.

JavaScript The use of JavaScript can prevent some bots that rely on basic requests (such as via cURL), as these will not load the detection script and hence will fail to progress. A common method to bypass many techniques is to use a headless browser to simulate a real web browser and execute the client-side JavaScript detection scripts. There are a variety of headless browsers that are used; some are custom (such as PhantomJS) but it is also possible to operate typical browsers such as Google Chrome in headless mode using a driver. Selenium is a common web automation framework that makes it easier to control the headless browser. Anti-bot detection systems attempt to identify the implementation of methods specific to these headless browsers, or the lack of proper implementation of APIs that would be implemented in regular web browsers. The source code of these JavaScript files is typically obfuscated to make it harder to reverse engineer how the detection works. Common techniques include:

Minification String arrays Control flow flattening Dead code injection debugger statements, to prevent use of debuggers like DevTools Anti-bot protection services are offered by various internet companies, such as Cloudflare, DataDome and Akamai.

Law In the United States, the Better Online Tickets Sales Act (commonly known as the BOTS Act) was passed in 2016 to prevent some uses of bots in commerce. A year later, the United Kingdom passed similar regulations in the Digital Economy Act 2017. The effectiveness of these measures is disputed.

References

Worked examples

Example 1 — a first encounter with Bot prevention

Start with the simplest possible case. Write down what Bot prevention claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Bot prevention before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Bot prevention ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Bot prevention

In research
Bot prevention appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Bot prevention in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Bot prevention is common in secondary-school and first-year university syllabi. It links to neighbouring topics Internet fraud, Internet security, so understanding it makes those chapters shorter.
In everyday life
Look for Bot prevention outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Bot prevention” →

How to study Bot prevention in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Bot prevention means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Bot prevention out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Bot prevention in simple terms?

Bot prevention refers to the methods used by web services to prevent access by automated processes. Types of bots Studies suggest that over half of the traffic on the internet is bot activity, of which over half is further classified as 'bad bots'.

Why does Bot prevention matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Bot prevention?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Bot prevention.

Tags

  • Internet fraud
  • Internet security

Keep exploring