Some of friends suggested stand still in front of dog. But sometimes it works and sometimes it doesn't works. When the dog is angry and it is trying to hurt everyone who is nearby, then it is better to run away. If the dog is only chasing you then it may stop when you stop.
Chances are there for both types of happenings. We do not know that a dog is normal or mad. The best option would be to be vigilant on the road and try to avoid by lanes, where the chances of stray dogs are less.
There are 2 street dogs in my current colony and they have bitten a couple of people as well and they are quite dangerous and ferocious at times. Should guard well against them and they are very unpredictable and come and scare suddenly by barks. So far in the recent times they have been dormant.
Life is like a boat in a sea, there is a lot to learn, so never close your mind to your limited experiences!
The people who were bitten ran away from the dogs? Are you sure they were bitten with out any provocation?. The point here is not to run away even if the dogs bark. If those people ran away from the dogs out of panic, then naturally the dog bites.
If you bend down and act as if you are taking a stone from the ground and show the throwing action in a furious manner, most of the ‘thinking’ dogs will escape. But against those dogs that do not think or do not know anything about acting, you have to fight using some real weapon or stick. Here, running is injurious to health.
A wise advice. Make the dog scared. Stand still and pretend as if you are going to hit either with a stick or a stone. The dog bolts away. Running away from the dog, you are putting yourself in difficulties and the risk of Bite.