Disable access to other than home users

When reaching my plex server other user can logging. They cannot see the private content, but everything which is available on plex tv. I actually restrict through a VPN, but is there a more elegant to restrict access only for home users?

You mean they’re loading the Plex Web app from your server?
As long as you want to share your library with users outside your home network and those users not having a static IP address on all their devices, you’ll have a hard time.

If it gives you any consolation… that’s all any user who’s guessing/knowing your server’s public IP will see. Access control within Plex is happening on a content / library level. So unless you specifically grant a user access to your library, they won’t be able to stream any of your content.