To prevent unwanted breeding, keep a female dog in heat separated from male dogs. A typical heat cycle lasts about three weeks, with the fertile period occurring during the middle 10–14 days.
For safety, isolate her for at least three weeks—indoors or in a secure outdoor area where males cannot reach her. Even after the cycle ends, she may remain fertile for a short time, so maintaining separation for at least three weeks post-cycle is advisable.