its an option when you add a product in admin (Downloadable product: checkbox)
And it does an excellent job of it too