Force ignored files from server

Hi all,
In my nextcloud server I have some important doc files . I would share this only from web access.
I would deny from server the possibility to syncronize this files on the client.
I found this but doesn’t work in nexcloud 16.
any suggestion, what should I do?