How To Get My Kitten To Stop Biting Me?

I have a 3 year old kitten who loves to play with my hair and rubs up against me all the time. I love it, but one day she bit down on my finger really hard and now its bleeding a little. Is there anything that can be done? What can I do to make her stop biting me?Attached Images