hair pulling ☹️

My baby constantly pulls my hair, and by pull I mean she rips it out.
I've tried saying "no" "ouch" and things like that but other then that she's a baby so what else can I do? I do wear my hair up she still pulls it from the top. Any advice? X