Please consult your physician before taking any medication. Brand name: Keflex Generic name: Cephalexin hydrochloride Why is Keflex prescribed? Keflex and Keftab are cephalosporin antibiotics. They are prescribed for bacterial infections of the respiratory tract, the middle ear, the bones, the skin, and the reproductive and urinary systems. Because they are effective for only certain types of bacterial infections, before beginning treatment your doctor may perform tests to identify the organisms causing the infection. Keflex may also be used for purposes other than those listed in this medication guide.