Are Bots Legal? Laws, Penalties, and Disclosure

Bots are legal in the United States. The software itself is neutral, and no federal law bans creating or running an automated program. Whether a particular bot is legal depends entirely on what it does: a chatbot answering customer questions is fine, while a bot that stuffs stolen passwords into login pages to hijack accounts is a federal crime. The line is drawn by a handful of federal statutes, evolving case law on scraping and AI training, and sometimes by the terms of service you agreed to when you signed up for a platform.

Bot Uses That Are Clearly Legal

Most bots operate well within the law. Search engine crawlers index the web. Customer service chatbots handle routine questions. Price-comparison tools scan retailer sites. Business automation software moves data between internal systems, generates reports, and handles repetitive workflows.

The common thread: these bots interact with systems they are allowed to access, do not impersonate humans to deceive anyone, and do not interfere with the normal operation of the platforms they touch. If your bot sticks to publicly available information, respects the boundaries the system owner has set, and does not commit fraud, it is almost certainly lawful.

What Makes a Bot Illegal

Bot activity crosses into illegal territory through four broad categories of conduct. Each maps to at least one federal statute.

Unauthorized Access to Computer Systems

The most common legal problem is accessing systems without permission. Credential stuffing, where a bot cycles through stolen username-password combinations to break into accounts, is the textbook example. So is a bot that bypasses login screens, CAPTCHA challenges, or other security measures to reach restricted data. Even if the bot does not steal anything, getting past the gate is enough to trigger federal liability.

Fraud and Financial Manipulation

Bots built to deceive create exposure across several statutes. Click fraud bots generate fake ad clicks to drain a competitor’s advertising budget or inflate revenue on pay-per-click sites. Application fraud bots submit fabricated loan or credit card applications using synthetic identities. In financial markets, trading bots engage in spoofing, placing large orders they intend to cancel before execution to create the illusion of demand and move prices.

Copyright Infringement and Circumvention

Bots that copy copyrighted material without permission, such as scraping entire databases of articles, images, or music, can infringe the copyright holder’s exclusive reproduction right. A separate and often more serious problem arises when a bot circumvents technological protection measures like digital rights management. Even if the underlying content turns out to be freely available, breaking through the lock is independently illegal.

Service Disruption

Distributed denial-of-service attacks use networks of bots to flood a server with so much traffic that legitimate users cannot get through. Bots can also overload APIs, spam online forms, or otherwise degrade performance. Intentionally damaging or disrupting a protected computer is a standalone federal offense.

The Federal Laws That Apply

No single statute governs all automated software. Several federal laws apply depending on what the bot does. Most states also have computer crime laws that mirror the federal framework.

Computer Fraud and Abuse Act

The Computer Fraud and Abuse Act is the government’s primary tool for prosecuting malicious bot activity. It makes it a crime to intentionally access a computer without authorization, or to exceed authorized access and obtain information you were not entitled to see.1Office of the Law Revision Counsel. 18 USC 1030 – Fraud and Related Activity in Connection With Computers The statute covers breaking into systems, stealing data, transmitting malicious code, ransomware extortion, and causing damage to protected computers. A “protected computer” includes any device used in interstate or foreign commerce, which effectively means every internet-connected computer. The CFAA carries criminal penalties and a private right of action, so victims can file their own civil lawsuits without waiting for prosecutors.

Digital Millennium Copyright Act

The DMCA’s anti-circumvention provisions make it illegal to bypass a technological measure that controls access to a copyrighted work. It also prohibits creating, distributing, or selling tools primarily designed for that purpose.2Office of the Law Revision Counsel. 17 USC 1201 – Circumvention of Copyright Protection Systems Criminal penalties for willful violations committed for commercial gain reach up to $500,000 in fines and five years in prison for a first offense, doubling to $1,000,000 and ten years for a subsequent offense.3Office of the Law Revision Counsel. 17 USC 1204 – Criminal Offenses and Penalties

Wire Fraud

Federal prosecutors often pair CFAA charges with wire fraud when a bot operates as part of a scheme to defraud. The wire fraud statute covers anyone who devises a scheme to obtain money or property through false pretenses and uses electronic communications to carry it out. Because bot traffic runs over the internet, the statute applies naturally. The maximum sentence is 20 years, or 30 years if the fraud affects a financial institution.4Office of the Law Revision Counsel. 18 USC 1343 – Fraud by Wire, Radio, or Television

The BOTS Act

The Better Online Ticket Sales Act, enacted in 2016, targets one specific use case: circumventing purchase limits and security controls on ticket-selling websites. It is illegal to use automated software to bypass access controls or purchasing limits set by a ticket issuer, and it is also illegal to resell tickets obtained through those methods.5Office of the Law Revision Counsel. 15 USC 45c – Unfair and Deceptive Acts and Practices Relating to Circumvention of Ticket Access Control Measures Violations are treated as unfair or deceptive trade practices under the FTC Act. State attorneys general can also sue on behalf of their residents.

FTC Act and Deceptive Bot Practices

Beyond ticket scalping, the FTC Act’s general prohibition on unfair or deceptive acts in commerce gives the Commission broad authority over misleading bot behavior.6Office of the Law Revision Counsel. 15 USC 45 – Unfair Methods of Competition Unlawful In its report to Congress on social media bots, the FTC explained that using bots to create fake engagement, post deceptive endorsements, or simulate human interactions can be deceptive when it misleads reasonable consumers.7Federal Trade Commission. Social Media Bots and Deceptive Advertising Report to Congress The practical takeaway: if your bot pretends to be human and that pretense influences a purchasing decision, the FTC can act.

Commodity Exchange Act and Trading Bots

Automated trading bots that engage in spoofing, placing bids or offers with the intent to cancel them before execution, violate the Commodity Exchange Act. Criminal convictions can bring up to $1 million in fines and ten years in prison per count, and administrative penalties can reach triple the monetary gain from each violation.

What “Unauthorized Access” Really Means

The CFAA’s reach has been contested in court for years, and a 2021 Supreme Court decision narrowed it significantly. In Van Buren v. United States, the Court ruled that a person “exceeds authorized access” only when they reach areas of a computer, such as files, folders, or databases, that are off-limits to them. It does not cover someone who has legitimate access but uses it for an improper purpose.8Supreme Court of the United States. Van Buren v. United States, No. 19-783

This matters for bot operators. Before Van Buren, some prosecutors argued that violating a website’s terms of service, or even using an authorized account in a way the owner did not intend, could be a federal crime. The Supreme Court rejected that theory. If a system’s gates are open to you, the CFAA does not criminalize what you do once you are inside, even if you are breaking company policy or a contract. Those violations can still support a breach of contract lawsuit, but they will not send you to federal prison under the CFAA alone.

Web Scraping and AI Training

Scraping sits at the intersection of the CFAA, copyright law, and contract law, and the picture is still developing. The strongest guidance on the CFAA side comes from the Ninth Circuit’s decision in hiQ v. LinkedIn, which held that scraping publicly available data, information anyone can see without logging in, likely does not constitute accessing a computer “without authorization” under the CFAA.9Justia Law. hiQ Labs, Inc. v. LinkedIn Corporation, No. 17-16783 Data behind a login wall is different. If a bot must authenticate or bypass security to reach the data, CFAA liability comes back into play.

Copyright adds a separate layer. The act of downloading and copying content during scraping implicates the copyright holder’s reproduction right, whether or not the CFAA applies. That question has become especially contentious around AI training, where companies scrape huge volumes of text and images to build machine learning models.

The U.S. Copyright Office addressed this in a 2025 report, concluding that some uses of copyrighted works for generative AI training will qualify as fair use and some will not. The Office found that training a model on a large dataset is often transformative because it converts content into statistical patterns rather than storing copies. But it rejected the argument that training is automatically fair use simply because it is non-expressive. Commercial use of copyrighted works to produce content that competes with the originals, especially when the works were obtained through unauthorized access, likely falls outside fair use.10U.S. Copyright Office. Copyright and Artificial Intelligence, Part 3: Generative AI Training Dozens of lawsuits are working through the courts, and the rules are far from settled.

Penalties for Illegal Bot Activity

Consequences range from civil lawsuits to decades in prison, depending on what the bot did and which statutes the government charges under.

Criminal Penalties Under the CFAA

Sentences vary by offense. Unauthorized access to obtain information from a protected computer carries up to one year for a first offense, rising to five years if the access was for commercial gain, furthered another crime, or the value of the information exceeded $5,000. Intentionally damaging a protected computer through malware or a denial-of-service attack can bring up to ten years. Repeat offenders face doubled maximums, with the most serious charges reaching 20 years.1Office of the Law Revision Counsel. 18 USC 1030 – Fraud and Related Activity in Connection With Computers

Identity Theft Add-Ons

When bot-driven account takeovers lead to identity theft charges, penalties stack. Aggravated identity theft carries a mandatory two-year prison sentence that runs on top of the sentence for the underlying felony. The judge cannot reduce it, run it concurrently, or substitute probation.11Office of the Law Revision Counsel. 18 USC 1028A – Aggravated Identity Theft For identity theft connected to terrorism, the mandatory add-on is five years.

Civil Liability

The CFAA also lets anyone who suffers damage or loss from a violation sue for compensatory damages. Businesses hit by credential stuffing, aggressive scraping, or click fraud can pursue those claims directly. The DMCA and wire fraud statute create additional civil exposure, and state computer crime laws offer further avenues for recovery.

Terms of Service and Contract Risk

After Van Buren, the role of a website’s terms of service is clearer: violating them generally will not make you a criminal, but it can still make you liable in a civil lawsuit. Terms of service are contracts. When you deploy a bot that violates a platform’s rules by scraping prohibited data, creating banned automated accounts, or running faster than the terms allow, you are breaching that contract.

Typical consequences are account termination, IP blocking, and, in serious cases, a lawsuit for breach of contract or related claims like trespass to chattels. These are not criminal penalties, but they can be expensive, and well-resourced platforms tend to enforce aggressively.

Whether the terms are enforceable against your bot at all depends on how they were presented. Courts consistently enforce clickwrap agreements, where a user must click “I agree” before proceeding. Browsewrap terms, where a hyperlink to the terms sits at the bottom of the page and the user never affirmatively agrees, are much harder to enforce. A bot that never clicked “I agree” to anything presents an even harder case for the platform.

Bot Disclosure Requirements

A newer area of regulation focuses not on what a bot does, but on whether it identifies itself as non-human. The FTC’s authority over deceptive practices already reaches situations where a bot misleads consumers by pretending to be a person, and several states have enacted laws that require bots interacting with consumers or voters to disclose their automated nature. These state laws typically apply to commercial transactions and political communications, and they require a clear and conspicuous notice that the user is talking to a bot.

At the federal level, no comprehensive bot disclosure law has been enacted, though bills have been introduced in Congress. For now, the practical risk sits with the FTC Act: if an undisclosed bot interaction is likely to mislead a reasonable consumer to their detriment, the FTC can treat it as a deceptive practice. Anyone deploying customer-facing chatbots or automated social media accounts for commercial purposes should build clear disclosure into the product as a baseline precaution.