That’s great optics.
Not sure how workable it is to define how you would define “confidential information” without having already viewed the content. But the whole thing isn’t very clever on a technical level anyway. Technically competent people will always find a way around such censorship.
Remember when Word and Excel Autosave did what you expected it to?