Is doxxing illegal in Pennsylvania? The short answer

Only for one group of people by name. Since February 2023, 18 Pa.C.S. § 2719 makes it a crime to communicate or publish the restricted personal information of a public safety official, such as a police officer, firefighter, judge or prosecutor, or of their family or household members, when it is meant to be used, or done in reckless disregard that it will be used, to threaten, intimidate or facilitate a crime against them. For everyone else, Pennsylvania has no doxxing statute. Publishing personal information can still be prosecuted under the stalking law (§ 2709.1) or the harassment law (§ 2709) when the elements are met. Federal law, including the federal cyberstalking statute, also applies in Pennsylvania.

This page explains those offenses, what they leave out and the practical steps open to victims. It is general information, not legal advice. For federal law and other states, see our main guide: is doxxing illegal?

Endangerment of a public safety official: 18 Pa.C.S. § 2719

Section 2719 was added by Act 165 of 2022, which took effect in February 2023, and amended by Act 98 of 2024. A person commits the offense when they intentionally or knowingly communicate, or publish through an electronic social media service, the restricted personal information of a public safety official or of a family or household member of one, either:

  • with reckless disregard that the information will be used to threaten, intimidate or facilitate a crime against them; or
  • with the intent that it be used that way.

Restricted personal information means a person’s image, name, Social Security number, home address, home phone number, mobile phone number, personal email or home fax number.

Public safety officials are the people listed in § 2702(c), the aggravated assault statute. The list includes police officers, firefighters, sheriffs and deputy sheriffs, probation and parole officers, correctional staff, judges of Pennsylvania courts, the Attorney General and deputies, district attorneys and assistants, public defenders and assistants, and federal, state and local law enforcement officials, among others. The 2024 amendment added certain federal judges serving in Pennsylvania.

Penalties

The offense is a misdemeanor of the first degree, punishable by up to five years in prison (§ 1104) and a fine of up to $10,000 (§ 1101). If it results in bodily injury to the official or a family or household member, it is a felony of the second degree.

Pennsylvania stalking and harassment laws that can apply to doxxing

Stalking (18 Pa.C.S. § 2709.1)

A person commits stalking when they engage in a course of conduct, or repeatedly commit acts or communicate, toward another person in circumstances that show an intent to place that person in reasonable fear of bodily injury or to cause them substantial emotional distress. “Communicates” expressly covers electronic means, including email and the internet. A course of conduct means more than one act over a period of time, however short, showing continuity of conduct.

A first offense is generally a misdemeanor of the first degree. A second or later offense, or a first offense by someone previously convicted of a crime of violence against the same victim or a family or household member, is a felony of the third degree.

Harassment (18 Pa.C.S. § 2709)

With intent to harass, annoy or alarm another person, it is harassment to engage in a course of conduct or repeated acts that serve no legitimate purpose, or to communicate to or about the person any lewd, threatening or obscene words, or to communicate repeatedly, anonymously or at extremely inconvenient hours. The course-of-conduct form is a summary offense; the communication forms are misdemeanors of the third degree, with up to one year in prison. The same section also makes cyber harassment of a child a crime.

Neither law applies to constitutionally protected activity. A single post sharing an adult’s contact details, with no threat and no pattern, will often fall outside both. For the federal rules and how other states compare, see our guide to cyberstalking laws and our overview of online harassment laws.

Protective orders in Pennsylvania criminal cases

Pennsylvania has no civil claim written for doxxing. Once a criminal case is open, though, 18 Pa.C.S. § 4954 lets the court, after a hearing and on substantial evidence that a victim or witness has been or is reasonably likely to be intimidated, issue protective orders. These can order the defendant not to violate the harassment or stalking laws, to keep a set distance from the victim, and to have no communication with them except through an attorney.

Civil claims such as defamation or invasion of privacy may also be available depending on what was posted. An attorney can assess them.

What to do if you are doxxed in Pennsylvania

  1. Put safety first. If you are threatened or someone has come to your home, call 911 or your local police.
  2. Preserve the evidence. Screenshot each post and message with the account name, URL and date. For stalking, prosecutors need to show a course of conduct, so keep every incident.
  3. Tell the police if you are a public safety official. Publishing your home address, phone number or personal email to threaten or endanger you may fall under § 2719, which also protects your family and household.
  4. Report the content. Use each platform’s privacy or harassment reporting form, and ask Google to remove results that show your contact details alongside threats or calls to harass (Google Search Help).
  5. Reduce what can be found. Request removal from people-search sites through each one’s opt-out process. Our data broker opt-out directory lists the official pages.
  6. Talk to an attorney about criminal reporting and civil options.

Doxxing in neighbouring states works differently. Compare New York, New Jersey and Ohio.

How Media Removal can help after doxxing in Pennsylvania

Media Removal is not a law firm and does not give legal advice. Criminal charges, protective orders and lawsuits belong to the police, prosecutors, courts and your attorney. We work alongside them on the practical side: finding where your information has spread and getting it taken down through the right channel for each site.

  • Mapping the exposure. We identify the posts, profiles, people-search listings and search results that show your private information or that of your executives and staff.
  • Removal at the source. We use each platform’s own privacy and harassment rules and, where your attorney pursues them, legal channels. Whether a page comes down is decided by the platform, the site owner or a court, so we do not promise any particular outcome.
  • Search results. We submit deindexing requests to Google where its policies allow and work to push down what cannot be removed.
  • Crisis support. When doxxing comes with a viral thread or false claims about a company or public figure, our reputation crisis management team responds the same day.

If the doxxing comes with false statements about you or your company, separate rules apply. See Pennsylvania defamation and harassment laws and how to sue for defamation.

For content removal, you are billed only when the URL is verified offline. Every client signs an NDA, and so do we. We answer within one business day. To discuss your situation, request a quote or read more about our content removal services.

Frequently asked questions

Is there a doxxing law in Pennsylvania?

Only for public safety officials. 18 Pa.C.S. § 2719, enacted in 2022 and in force since February 2023, makes it a crime to communicate or publish their restricted personal information to threaten, intimidate or facilitate a crime against them. Other people rely on the stalking and harassment laws, §§ 2709.1 and 2709.

Who counts as a public safety official under 18 Pa.C.S. § 2719?

Anyone listed in § 2702(c), including police officers, firefighters, sheriffs, probation and parole officers, correctional staff, Pennsylvania judges, prosecutors, public defenders and federal, state and local law enforcement officials. Since 2024 it also includes certain federal judges serving in Pennsylvania.

What is the penalty for doxxing a police officer in Pennsylvania?

Under § 2719, a misdemeanor of the first degree, punishable by up to five years in prison and a fine of up to $10,000. If the disclosure results in bodily injury to the officer or a family or household member, it is a felony of the second degree.

Can posting my phone number online be stalking in Pennsylvania?

It can be part of stalking if it belongs to a course of conduct, or repeated communications, that shows an intent to place you in reasonable fear of bodily injury or to cause you substantial emotional distress. A first offense is generally a misdemeanor of the first degree under § 2709.1.

How to cite this resource

Use this reference when citing this page.

Media Removal. (November 5, 2026). Is Doxxing Illegal in Pennsylvania? Pennsylvania Doxxing Laws. https://mediaremoval.com/is-doxxing-illegal/pennsylvania/