I found this recently in my Country Wisdom book, and decided to share it because it really works great at my house! We have hummingbird feeders hanging on our porch and noticed that the yellow jackets were volatile to humans and my poor hummers! So, upon reading how to make hummingbird nectar, it also had how to deter bees.
First of all the nectar recipe is: 1 part water to 4 parts sugar*, cook until it comes to a nice boil, but not rolling, then simmer on low 5 minutes. Let cool and pour into container. This will keep for a week in the fridge, if it turns cloudy throw it out.
Okay, now around the holes of your feeder put Vaseline or oil (I prefer Vaseline) with either your finger or Q-tip or small spatula. Hope this helps.
Source: Country Wisdom
By Henrietta B. from Westminster, SC
Editor's Note: Many comments have been sent in to discourage using Vaseline on hummingbird feeders. It can be damaging to the hummingbirds. Also, the most common ratio for making hummingbird solution is 4 (water):1 sugar) so we have corrected the original post.