To help avoid ants in the pantry, everything is kept in plastic containers or ziploc bags. My husband also sprays the yard for fleas and ants every few months.
If someone figures out how to get rid of or prevent spiders in the house I would sure like to know their secret. We live in the country and I am in a constant battle against cob webs and spiders.