This works great to keep my little Peek-a-poo contained.  Not sure if it would work for a large dog but she respects it.  We have a large opening and this works great for it.