The first step in stopping a dog from digging is to determine the cause. Some dogs dig out of boredom, loneliness or a lack of exercise. Others dig holes in order to find a cool spot to escape the summer heat.
Keeping a dog in a sheltered, shaded area with a water source can often stop the urge to dig.
Breeds such as terriers are natural hunters and will instinctively dig. Adequate exercise with walks of 30 to 40 minutes at least twice a day will help relieve boredom and work off the excess energy that contributes to digging.
Give a dog interesting toys such as Kongs filled with treats. These toys are designed to keep a dog busy. Play games such as fetch or Frisbee in order to re-direct your dog’s focus so that it is on you and not on the yard.