Typing a question into a search engine is, in almost every situation, legal by itself. When people ask what is illegal to search online, the honest answer is that the law almost always cares about what you do next: downloading a file, buying something, sending a message, logging into a system, or deliberately viewing certain content. There is one major exception. Federal law makes it a crime to knowingly access child sexual abuse material with intent to view it, even if nothing is saved. Everything else on the “illegal” list is really about the step after the search.
Is Searching Itself a Crime?
For most categories of unlawful content, the search bar is not the problem. Reading about how drug scheduling works is legal; buying heroin from a dark-web vendor is not. Looking up federal firearms rules is legal; arranging an unlicensed sale online is not. Researching extremist movements for a class paper is legal; wiring money to a designated terrorist group is not. The criminal act almost always begins when you take a concrete step beyond the query.
The exception, discussed in the next section, is child sexual abuse material, where federal law reaches the viewing itself.
Even when your search is lawful, it does not disappear. Prosecutors routinely introduce browser history and search logs to prove intent when someone is later charged with a crime. A query on its own may be protected curiosity. The same query sitting in evidence next to a stockpile of precursor chemicals looks very different to a jury.
The One Search That Is Itself a Crime
Federal law prohibits producing, distributing, receiving, and possessing child sexual abuse material, and it also prohibits “knowingly accessing with intent to view” it.1Office of the Law Revision Counsel. 18 USC 2252A – Certain Activities Relating to Material Constituting or Containing Child Pornography You do not need to download, print, or share anything. Deliberately navigating to the material and viewing it is enough, and courts have treated cached images and temporary internet files as evidence of that knowing access.2U.S. Department of Justice. Citizens Guide to U.S. Federal Law on Child Pornography
Penalties are among the harshest in federal law. A first conviction for distribution or receipt carries a mandatory minimum of 5 years and a maximum of 20. Possession or knowing access can bring up to 10 years, rising to 20 if the images involve a child under 12. A prior sex-offense conviction pushes distribution exposure to 15 to 40 years and possession exposure to 10 to 20.1Office of the Law Revision Counsel. 18 USC 2252A – Certain Activities Relating to Material Constituting or Containing Child Pornography
Accidental exposure is not the same as deliberate searching. If you ever stumble onto this material, close the page and do not interact with it further.
AI-Generated Images
Images produced by AI tools are already covered. If the tool modifies a photo of a real child, prosecutors charge under the child exploitation statutes. If the image is fully synthetic, it has historically been prosecuted under federal obscenity laws, which carried lighter penalties. The ENFORCE Act, which passed the Senate in December 2025, aims to erase that gap by applying the same penalties, mandatory sex-offender registration, a presumption of pretrial detention, and no statute of limitations regardless of which path the image took.3U.S. Congress. S.3021 – ENFORCE Act
Threats, Harassment, and Incitement
The First Amendment protects a wide range of offensive, provocative, and unpopular speech. It does not protect a true threat or speech aimed at producing immediate violence, and posting either online is a federal crime.
A true threat is a statement communicating a serious intent to commit violence against a specific person or group. The Supreme Court has held that the government can prohibit statements made with the intent to put a victim in fear of bodily harm.4Cornell Law Institute. Black et al. v. Virginia Transmitting any threat to kidnap or injure another person through interstate communications, which includes the internet, carries up to five years in federal prison.5Office of the Law Revision Counsel. 18 USC 875 – Interstate Communications
Incitement is narrower. Advocating illegal action loses protection only when the speech is directed at producing imminent lawless action and is likely to actually produce it. Posting that a law is unjust is protected. Urging a specific crowd to attack a specific building right now is not. The medium does not change the test.
Buying Illegal Goods Online
Dark-web marketplaces offer controlled substances, weapons, and stolen data. The transactions that happen there are governed by the same federal laws that cover drug deals and gun sales offline.
The Controlled Substances Act makes it a crime to manufacture, distribute, or possess with intent to distribute a controlled substance outside legitimate medical channels, with a specific provision for internet sales of date-rape drugs carrying up to 20 years.6Office of the Law Revision Counsel. 21 USC 841 – Prohibited Acts A Exposure for other online drug buys depends on the substance and quantity but routinely runs into years of federal time.
Online firearm sales follow the same rules as in-person sales. The transaction must go through a federally licensed dealer, and the buyer must pass a background check. Arranging a sale on social media or an encrypted platform that skips those requirements is a federal offense, and the Bureau of Alcohol, Tobacco, Firearms and Explosives actively works these cases.
Browsing a dark-web marketplace is not automatically a crime. Buying anything illegal through one is. Federal investigators have repeatedly shown that the anonymity those marketplaces promise is thinner than users assume, using transaction records, shipping data, and cryptocurrency tracing to identify both sellers and buyers.
Non-Consensual Intimate Images and Deepfakes
Posting intimate images of a real person without consent is now a federal crime. The TAKE IT DOWN Act, signed into law on May 19, 2025, established the first federal criminal prohibition against publishing non-consensual intimate imagery, including AI-generated deepfakes, and requires platforms to remove reported images.
Federal cyberstalking law also reaches much of this conduct. Using the internet to harass, intimidate, or place another person in fear of serious bodily injury can bring up to five years, rising to 10 years or more if the victim suffers serious physical injury, and allowing a life sentence if the victim dies as a result.7Office of the Law Revision Counsel. 18 USC 2261 – Interstate Domestic Violence The statute specifically covers conduct carried out through “any interactive computer service or electronic communication system of interstate commerce.”8Office of the Law Revision Counsel. 18 U.S. Code 2261A – Stalking
Most states also have their own statutes targeting non-consensual intimate imagery, often called “revenge porn” laws. Penalties vary and frequently include civil liability on top of criminal charges.
Pirating Movies, Music, and Software
Downloading or streaming pirated media is one of the most common forms of illegal online activity, and the exposure is larger than many people realize. Copyright infringement occurs when someone reproduces or distributes copyrighted work without the rights holder’s permission.9Office of the Law Revision Counsel. 17 USC Chapter 5 – Copyright Infringement and Remedies
The Digital Millennium Copyright Act adds a separate violation for bypassing digital copy protection, even if you never share the content afterward.10Office of the Law Revision Counsel. 17 USC 1201 – Circumvention of Copyright Protection Systems Cracking the encryption on an e-book or streaming service is itself illegal.
Civil damages run from $750 to $30,000 per infringed work and can reach $150,000 per work if the infringement was willful.11Office of the Law Revision Counsel. 17 USC 504 – Remedies for Infringement: Damages and Profits Criminal penalties apply at scale: reproducing or distributing at least 10 copies of copyrighted works worth more than $2,500 within a 180-day period brings up to five years in prison for a first offense and up to 10 years for a repeat offense.12Office of the Law Revision Counsel. 18 USC 2319 – Criminal Infringement of a Copyright
Hacking and Unauthorized Access
The Computer Fraud and Abuse Act makes it a federal crime to access a computer without authorization or to exceed the access you were given. The statute covers everything from breaking into a corporate database to using a stolen password to open someone else’s email.13Office of the Law Revision Counsel. 18 USC 1030 – Fraud and Related Activity in Connection With Computers
First-offense maximums under the CFAA include:
- Up to 1 year for unauthorized access to government or financial data, rising to 5 years if done for financial gain or in furtherance of another crime.
- Up to 10 years for intentionally damaging a computer system.
- Up to 5 years for computer fraud to obtain something of value.
- Up to 10 years for obtaining national defense or restricted information.
Repeat offenders face doubled maximums across the board.14Office of the Law Revision Counsel. 18 U.S. Code 1030 – Fraud and Related Activity in Connection With Computers
What About Advanced Search Operators?
Using advanced search operators, sometimes called “Google dorking,” to find publicly indexed information is legal. Search engines indexed those pages, and viewing them does not bypass any security. The CFAA problem begins if someone takes what they found and uses it to log into a protected system, steal personal data, or exploit a vulnerability. At that point the violation comes from the unauthorized access, not from the search that pointed the way.
Material Support and Weapons Instructions
Reading news coverage of terrorism or studying extremist ideology is lawful. The crime is providing “material support” to terrorism, defined broadly in federal law to include training, expert advice, communications equipment, personnel, and financial services.15Office of the Law Revision Counsel. 18 U.S. Code 2339A – Providing Material Support to Terrorists The required mental state is knowledge or intent that the support will be used for a violent federal crime. Curiosity does not satisfy that element.
A related statute makes it illegal to distribute instructions for making explosives or weapons of mass destruction when the distributor intends them to be used in a federal crime of violence, or knows the recipient does.16Office of the Law Revision Counsel. 18 U.S. Code 842 – Unlawful Acts Watching a chemistry lecture online is not a crime. Sending bomb-assembly instructions to someone you know is planning an attack can bring up to 15 years under the material-support statute, and more if anyone dies.
Your Search History as Evidence
Online activity is less private than most people assume. Internet service providers, search engines, and social media platforms all retain records that can be preserved and turned over to investigators by subpoena or warrant. Many platforms also run automated detection for specific categories of illegal content, especially child exploitation material, and report flagged accounts proactively.
Tor, VPNs, and encrypted messaging raise the cost of surveillance. They do not make anyone untraceable. Federal agencies have repeatedly identified dark-web users through technical exploits, undercover operations, and conventional investigative work.
Even for conduct that never leads to charges on its own, a search history can shape a later case. Queries about synthesizing a drug, buying a weapon, or locating a specific person become powerful evidence of planning and intent if the same person is later arrested for a related offense.
What a Conviction Can Cost You
Sentences for online offenses vary widely. Child exploitation convictions carry some of the longest mandatory minimums in federal law. Drug trafficking exposure often runs from 5 to 20 years depending on the substance and quantity. Transmitting threats carries up to 5 years. Copyright piracy at scale can mean up to 5 years and six-figure civil damages. CFAA offenses range from 1 to 10 years for a first conviction. Cyberstalking brings up to 5 years in a typical case and far more if the victim is seriously harmed.
Collateral consequences often outlast the sentence. Sex-offense convictions require registration, in many cases for life. Any felony can cost professional licenses, employment, voting rights, and firearm rights. Courts can also order restitution to victims on top of any fine, adding financial liability that follows a person long after release.