Some deterrents include: Whistle with a sharp note or ultrasonic: Dogs have sensitive hearing and a whistle with a sharp or ultrasonic tone can be effective in shutting down a dog that's engaging in aggressive behavior.