I agree with many of the moms that the kids need to learn what is acceptable to play with, and what is not acceptable. But we all know that we cannot keep our eyes on them for every single minute of every single day. Would you rather be safe or sorry that when you had to go to the bathroom was the one minute your child strategically chose to get into the bleach or dish soap she knew she wasn't allowed to have?
That being said, I bought the Kidco magnetic childlocks. They are pretty strong, and worked well for our little one who is also two. They attach with a strong tape, and there is a lever you can use to lock them open, or you can leave them so when the door or drawer is closed it latches shut. I put one of the magnet keys in the kitchen, and bought a second for storage with all of the other spare keys so that if we ever lost the key, there was a spare around. Mostly I leave them open now, but there are days when the pots and pans are all over the place and it drives me crazy so I just lock them back shut. They are on the expensive side, but well worth the $$ in my opinion!