Is it certain foods that are a trigger or all foods?
Is it a certain time of the day that its limited to?
Usually most people have a window during which the "Danger Zone" hits. For me, nightime after work mindless snacking is the problem so I know that I have to:
a) have eaten enough during the day so I dont get home and am starving
b) am extra vigilant at night time
Sometimes just walking into a different room in the house is enough to shut it off. Or popping in some Crest whitening strips after dinner.
The other trick I have used in the past when there was just ONE thing I would overeat (peanut butter say) is that I would just plan to have some at the same time every day . . . that way I got through the night cos I knew breakfast would include peanut butter on toast.
And when all that fails, put on your TIGHTEST pair of jeans (I call mine my hysterectomy jeans bcos they are so bloody tight that it feels like my uterus is going to fly out at any minute when I put them on). I guarantee I am not looking for ANY extra food while parading around the house in them!!!!
In all seriousness though, there are times when none of that works and its VERY hard to go through that . . . in those moments I just do what I can to be as conscious as possible of what I am doing.
All I know is that the longer you resist the easier it does get.