A squirrel repellent can be effective by using a variety of methods, including spraying it with a pesticide or burying it in a place where the rodents cannot access it.