help!

M&M
Sorry this is not pregnancy related, but my daughter hurt her foot a bit ago. She complains that it hurts and then goes to touch it! She's only 19 months old so when I tell her not to she still does because it's bother her so much (but touching it makes it more painful!) what can I do to keep her from touching it? We tried socks but it didn't help... Should I give her pain medication for it? Currently, bath time is distracting her but after the bath I know it's going to be the same thing again :(