Prohibit downloading files

How to set up a ban on users downloading files/folders? I hope users can only use OnlyOffice for online preview

You can set it while setting the sharing permissions, where you can hide the “Download”-button in the advanced sharing settings of the “Share”-dialog.

But only “hide”. Download every share with adding “/download” to the link.

Security through obscurity - Wikipedia