that's trivial, don't connect with any recruiter/headhunter choads. You do have your search-engine friendly resume online on your own website right? with "No Recruiters" at the top?
That's been working for me for 15 years, to hell with recruiters.
Not connecting to "choads" is not a solution because the whole idea of the site is that your profile is visible and that people not connected to you can see it.
How *I* use or don't use the site is irrelevant, I was just pointing out that she's probably going to be playing whack-a-mole with fake accounts: block one and another pops up. If someone want's to stalk you, linked in is pretty much the perfect place.