In addition to plants, rats also dislike certain spices like peppermint, cloves, cayenne pepper, and chili. The smell of these near your bird feeder will also deter rats.