If a vehicle using high beams comes toward you, you should:

If a vehicle using high beams comes toward you, flash your high beams quickly a few times. If the driver does not dim their lights, look toward the right side of the road. This will keep you from being blinded by the other vehicle’s headlights.
DMV Writen Test