Diatomaceous earth works like the cinnamon to keep ants out of an area. Dribbling a line, or puffing a thin dusting will work. I sometimes run a fine dusting of it around my kitchen waste bowl in the corner of a counter to keep a line of ants from being attracted it it.