A person walks past the fence. Your dog barks, the person continues, and the same scene repeats the next day. Your dog may be alerting, worried, or excited by the passersby. Watching all afternoon does not necessarily help them relax.

Don't leave your dog outside unsupervised to rehearse a barking run along the fence. Check the fence for gaps and places where someone could reach through. A safe opaque screen or a second barrier may reduce the direct view and keep paws and noses away from the boundary. Keep a comfortable indoor option available, especially during busy street hours.

Teach the turn before the sprint

Practice a cheerful "inside" cue when nothing is passing. Call once, reward your dog well for coming with you, then sometimes allow them back out so the cue does not always end the fun. When a passerby appears at a distance and your dog can still respond, invite them inside and reward. If they are already racing the fence, manage the yard setup and try earlier next time.

You can also sit with your dog at a distance from the boundary and reward calm glances at people before barking begins. If they cannot relax, move farther away or end the session. Do not ask pedestrians to stop or interact with your dog through a fence. If the dog has tried to bite through, redirects onto you, or cannot be kept safely contained, seek qualified, reward-based behavior help.

A yard should be a place your dog can enjoy, not a shift of guard duty they cannot clock out of. For a longer plan around passersby, see the barking and reactivity guide, supervise the yard and keep a secure boundary while you practise

Sources: Cummings School of Veterinary Medicine: How to Stop Territorial Barking. Best Friends Animal Society: Visual barriers for dog reactivity.