Angie Harmon just snagged a long-term protective order for her family ... well, everyone except her husband, ex-NFL star Jason Sehorn.
Harmon went to Santa Monica court Tuesday without a lawyer ... she represented herself.
Harmon convinced the judge ... Janice Lee Davis posed a significant threat to her and her family to warrant an order keeping her at a distance ... but "family" did not include Jason.
The order covers her, her 3 kids, a nanny and a family friend who lives at the home ... but no hubby.
People close to Angie tell us ... she didn't include Jason because he's never at the L.A. house ... he lives at their main residence on the East Coast. She's in L.A. with the kids while she shoots her show, "Rizzoli & Isles."