How do i make nextcloud ignore files based on name and extention? (not sync client)

I want to ignore both indexing, viewing and preview generation of certain files based on name and extension. Is this possible?

Thanks!