To deter squirrels, use squirrel-proof feeders, place feeders away from jump-off points like trees or buildings, or use a baffle to block their path. Additionally, offering foods that squirrels don't prefer, such as safflower seeds or nyjer, can help keep them away.