How do you block some one in soccer but not get hurt?

You can attept to poke your foot in and steal the ball, but he might step on your foot or elbow you (penalty). You can also stand in front of them and they may not attemp to hurt you, and go around you.