I think you're asking how to make the public URL shares accessible only with a password, in which case could just use basic password auth on your web server. Something like https://www.digitalocean.com/community/tutorials/how-to-set-... for Linux or https://docs.microsoft.com/en-us/iis/configuration/system.we... for Windows.