Hide download links automatically

I was just wondering if it would be possible to automatically hide links that contain zip, rar or other download links automatically. I'd like my members to have the ability to add such files, but would like the actual download links hidden from anyone who isn't logged in.

I know there are plugins that allow the admin to hide content when submitting a post, but I'd like the ability to do this automatically for certain content.