I had to get a Booda Dome box cause I have 4 kitty tootsy roll eaters! And of course, two of them figured out how to partner up and flip the lid off. Sooooo, I knoooowwwww I am smarter than they are, or at least think I am, and hooked a bungee cord on the base up over the top and onto the other side. Now, they avoid it knowing their efforts are futile.
Depending on the actual litter you use in the box, it can be very harmfull to dogs. Like Fresh Step is made with a concrete mix with some other things. So if swallowed, it can turn into cement in their stomaches causing blockage. If you use this type of litter, you definitely have to keep the dog from ingesting it with the poop.
Try different things and be creative like Pghboxers said. You can try turning the box so the door is about 8" from the wall. May deter your dog, but I bet he will still figure it out or move it. LOL
The top hole in a container is a great idea Pghboxers! I will pass this idea on to others!