When I bought my house, it had a bird feeder outside the breakfast sunroom. About 100 ft on one side was a large tree. A wooded area was about 100 feet the other way.
This was the first bird feeder I had ever owned. One day, we decided to put bird seed in it. The feeder was a small house shaped unit mounted on a fence post. As soon as I began putting bird seed in, the squirrels got in it. One day, I was sitting at the window watching the squirrels when something caught my eye. It was a large hawk. He swooped down and plucked a squirrel right off the top of the feeder. Later, I noticed him sitting in the tree watching the feeder. Within a short time, I had no more squirrel problems.