Monkeys in 'the wild' will almost never attack humans, quite the opposite, but as more of these monkeys' habitats are lost, and we begin living in closer proximity to our primate brothers, conflicts arise. In Indian cities in particular, the levels of monkeys are starting to get out of control. Monkeys are sacred in hinduism due to Hunaman, the monkey god. This tip is generally universal, though different regions of our planet obviously have different types of monkeys.
Here are some sure-fire ways to reduce risks of getting attacked, and running the risk of contracting potentially fatal diseases like rabies or hepatitis B. Almost all occasions where monkeys get aggressive are to do with you having food, or them thinking you have food. As if you were being mugged, give them what they want immediately. An aggressive monkey will usually give you signs before it attacks you: looking you in the eyes while bearing its teeth, before grunting and faking a lunge towards you to try and put you off balance.
As soon as the monkey displays any of these behaviours, give it the food! If you don't have food, show your empty hands to the monkey to prove it. Don't keep eye contact for too long though, and definitely don't smile or show your teeth, as this is seen as aggressive. If the situation still isn't getting diffused, don't freak and definitely don't scream or run away, as this will anger the primate more.
If worst comes to worst, find some sort of stick and shake it at the monkey to scare it, or hit it on the head if absolutely necessary. If bitten, immediately seek medical help, but fingers crossed this doesn't happen to you on your travels!
