How to stop hot air from engine compartment?

I had a car that constantly circulated hot water through the core. It was like an oven in the glove box. I bypassed the core, it was like air conditioning compared to before.