What is a bot? | Bot definition

A bot is a software program that operates on the Internet and performs repetitive tasks. While some bot traffic is from good bots, bad bots can have a huge negative impact on a website or application.

Learning Objectives

After reading this article you will be able to:

  • Understand what a bot is and what bots do
  • Explain the difference between good bots and bad bots
  • Learn how to stop bad bot traffic

Related Content


Want to keep learning?

Sign up to receive security learning articles from Cloudflare.

Refer to Cloudflare's Privacy Policy to learn how we collect and process your personal data.

Copy article link

What is a bot?

A bot is a software application that is programmed to do certain tasks. Bots are automated, which means they run according to their instructions without a human user needing to manually start them up every time. Bots often imitate or replace a human user's behavior. Typically they do repetitive tasks, and they can do them much faster than human users could.

Bots usually operate over a network; more than half of Internet traffic is bots scanning content, interacting with webpages, chatting with users, or looking for attack targets. Some bots are useful, such as search engine bots that index content for search or customer service bots that help users. Other bots are "bad" and are programmed to break into user accounts, scan the web for contact information for sending spam, or perform other malicious activities. If it's connected to the Internet, a bot will have an associated IP address.

Bots can be:

Different types of bots

What is malicious bot activity?

Any automated actions by a bot that violate a website owner's intentions, the site's Terms of Service, or the site's Robots.txt rules for bot behavior can be considered malicious. Bots that attempt to carry out cybercrime, such as identity theft or account takeover, are also "bad" bots. While some of these activities are illegal, bots do not have to break any laws to be considered malicious.

In addition, excessive bot traffic can overwhelm a web server's resources, slowing or stopping service for the legitimate human users trying to use a website or an application. Sometimes this is intentional and takes the form of a DoS or DDoS attack.

Malicious bot activity includes:

To carry out these attacks and disguise the source of the attack traffic, bad bots may be distributed in a botnet, meaning copies of the bot are running on multiple devices, often without the knowledge of the device owners. Because each device has its own IP address, botnet traffic comes from tons of different IP addresses, making it more difficult to identify and block the source of the malicious bot traffic.

How can companies stop malicious bot activity?

Bot management solutions are able to sort out harmful bot activity from user activity and helpful bot activity via machine learning. Cloudflare Bot Management stops malicious behavior without impacting the user experience or blocking good bots. Bot management solutions should be able to identify and block malicious bots based on behavioral analysis that detects anomalies, and still allow helpful bots to access web properties.

To learn more about setting up bot protection, see our Developer documentation.