We have used a can filled with pennies to curb unwanted behaviors in our dogs. The noise of the can and metal pennies is unpleasant to dogs. It doesn’t hurt them but it will break their concentration on whatever it is that is making them bark.