Trash compactors take a little more to keep closed and will usually require a custom fabrication, depending on your unit, to be effective and useful. Because trash compactors can be difficult for a toddler to use, we recommend that you wait until this does become a problem for you. Appliance latches, like other devices, only work if you close them. These latches are very easily broken if left in the open position. Refrigerator door straps might prove to be very useful in deterring this problem.
Velcro is usually the best defense here.
Mount it up high and out of reach or it will not be effective. There are numerous brands of self-closing latches for refrigerators. We do not recommend this type of automatic latch on a refrigerator door. Most newer models have been introduced with a higher mounting location and are out of a toddler's reach. If fortune did not shine on you and an early model sits in your kitchen, good luck when your toddler takes an interest in this option and you still wish to keep it in use.