Don't post everything about yourself on social media (that includes LinkedIn).

Be highly selective and add some lies in the mix. Never let anyone know you on a level that can be used against you.

If you're non anonymous, at least don't be an open book.