The best way to handle in the situation is not to stare at the lights and focus on the direction where you wouldn't get blinded. If you look ahead with the bright headlights, it is likely that you'd get blinded that would lead to complications such as having an accident. That is why it is best to direct your attention else where in which your eyes wouldn't be directed at the bright head lights.