i don't think it would be a good idea as it is a product designed to be rubbed on , not ingested. have you had the dog checked out by a vet , to find the underlying cause?
i have used oil of cloves to stop chewing, that my work
My cat was playing with a tub of Sudocreme and got some in his mouth. He spent the next half hour or so trying to spit it out and then puked the rest up.
Sudocrem isn't good as its full of chemicals. As amonty says you need to get her checked out to determine whether its an allergic reation, some kind of parasite or whether it started as an anxiety issue and has developed from there
i think you should be looking at why she isbiting her legs; does she have fleas, or louse? is it a nervous thing? or maybe because they are sore. get a coller from the vet, you know the white ones to stop them biting stiches and give her legs time to heal