The best way to keep your dog from escaping and to stay on your property is to set up a permanent fence. This is not possible for everyone, though, so it's good to have backup ideas. For some, the best way to keep a dog on the property is to use an invisible fence. For others, it's setting up an enclosed area where the dog can run. Even keeping your dog on a lead for a limited period of time is a better idea than letting your dog run around without boundaries.