Wash countertops, cabinets, and floor with equal parts vinegar and water to deter ant infestations.
Flour and Borax -
Mix 1 cup flour and 2 cups borax in a quart jar. Punch holes in the jar lid and sprinkle the contents around the house foundation. Keep borax out of the reach of children and pets.
Bone meal or powdered charcoal or lemon -
Set up barriers where ants are entering. They will generally not cross lines of bone meal or powdered charcoal. If you can find a hole where ants are entering the house, squeeze the juice of a lemon in the hole or crack. Then slice up the lemon and put the peeling all around the entrance.
Pennyroyal, Spearmint, Southernwood, and Tansy -
Growing these plants around the border of your home will deter ants and the aphids they carry.