Well i used a plastic bottle with a bit of gravel in when mine went for anything furry as pups, we had a bunny at the time that had free run of the garden
I shook it once & the dog backed off , but it also made them scared of the ironing board the racket it made when putting it up, so i stopped ironing for 9 yrs so the dog didnt get traumatised