Baby has got the habit of pulling hair, how can parents get rid of this bad habit?

Children have many strange habits and actions, one of which is hair pulling. Yes, you must have also seen that whenever someone goes near the child to love him or tries to kiss him,...