There are a few different ways. If you suspect you're in an area with them around, you can run around in circles, flapping your arms like a chicken. That tends to scare them away for a good few hours. Or if you just want personal protection from them, you can rub daisies against your ears and that keeps them off.