Sram and Jagwire brake cable sets come with outer sheathes that cover the cable between cable stops for that exact purpose (as well as creating a semi-sealed system).
Cable donuts still do the same job for much cheaper if you don't need a whole cable set. Ask your mechanic at the LBS, they might even give them to you free.