This style has proven very effective over a decade or more, even with overhanging branches the little tree-rats can launch from:
The concept is : Squirrels will get there, no matter what. But their weighyt will close the trap door over the food, so they'll leave hungry and eventually stop...