To insulate safely, use a fire-resistant sealant instead of traditional insulation for areas around flues and chimneys. A fire-rated sealant can fill small gaps around the flue while ensuring safety.