Several methods can discourage ducks from entering an area. Peppermint oil, coyote urine, motion-activated sprinklers, decoys, scarecrows, loud noises, and trained dogs are all commonly used deterrents.
Combining multiple strategies tends to work best, as ducks can become accustomed to a single repellent over time.