The Highway Code states: 'Only flash your headlights to let other road users know that you are there. ... The Highway Code is basically suggesting that a driver may flash their headlights to warn other drivers of their presence if in a hazardous position, or to warn another person that may not have noticed you.