To change your profile visibility, go to Accessibility -> General Visibility.
Choose between
- Anonymous profile(default)
- Open profile
- Don't show profile
When your profile is set to don't show profile, only the companies under Active connections can see your profile.