If the wolf sees you, back away slowly. Always maintain eye contact, and do not turn your back. If you try to escape, keep the wolves in front of you. If the wolves get behind you, their predatory instincts may kick in. Slowly back away while facing the pack.
Don't run away. Wolves are faster than you, especially when you're navigating the woods. Furthermore, running will cause a wolf's prey drive to kick in. If the wolves weren't chasing you before, there's a good chance that they'll start chasing you when you run.
Act aggressively and loudly if approached. Step towards the wolf, make noise, yell, and clap. Back away slowly. Keep acting aggressively, and keep making noise. Maintain eye contact with the wolf, and do not turn your back.
Fight back. If the wolf attacks, fend it off with sticks, rocks, bear spray, air horns, or any weapon that you have. Find an easily-defensible position: stand with your back against a tree or a large rock. You don't want the wolves to get behind you.
Stay alert. If you do manage to drive off the wolf, get to safety calmly and quickly. Climb a tree, a boulder, or another high landscape feature. If possible, get inside a nearby car or building
Band together. If you are in a group that's being attacked by wolves, make sure to keep all children in the center When wolves attack herds of prey, they target the weakest link: young. No matter what, do not break the group up. Make sure that you have a person watching in every direction so that the wolves can't outflank your group.