biting and pulling hair!

My son is 8 months old and he's constantly pulling my hair and biting me. I know he's still little and doesn't exactly understand that it hurts but what are some ways I can teach him to not do this? He is biting because he is teething and i give him lots of toys and things to chew on. He usually pulls my hair to stand up if I am sitting next to him. I will put my hair up and will be fine but the second it's taken down he's grabbing and pulling it. I would just wear my hair up all the time but I want him to know that he shouldn't do that.