Instead of trying to keep them out, consider giving them an alternative. I put small piles of sugar outside of my house in the hopes that they won't need to go exploring for food. So far it has greatly reduced (but not eliminated) masses of ants invading my kitchen all summer.