Prevent users from creating files with dots or spaces at the end

Hello,

we’re running a system with mixed clients (mainly MacOS and Windows) and while it’s possible to create files/folders with dots or spaces at the end on MacOS, that doesn’t work on Windows.

SeaDrive warns about it when someones creates such an “invalid” file, but I’m getting tired of telling my users over and over again to not create files with that structure, since they can’t be seen on Windows without using the web client.

Is there a way to prevent them from even creating these files in the first place?