When you have kids in the house, you'll often want to pack a treat or two with their lunch. Those sugary or salty snacks will tempt the kids, though, not to mention some adults. Creating a "lunchbox zone" in the pantry may help curb snacking.
Parent Hacks suggests a separate area reserved just for lunchboxes:
This year, as part of my back-to-school organising, I designated a "Lunches Only" shelf in a small cabinet in my kitchen. Stuff on that shelf is off limits for any other purpose (including my work-at-home husbands' snack attacks).
Provided your kids are good at following rules, this should keep them away. This won't stop your spouse if they're a hardcore snacker, but it removes the excuse "I didn't know that was just for the kids".