Ant hills in flowerbeds and lawn areas can become a nuisance, however, as can ants that come indoors when foraging for food, returning to outdoor nests. If you have ant colonies that you wish to control, there are several things you can do. A good least-toxic method is the use of boric acid baits. Boric acid baits can eliminate some ant colonies in about one week. The trick is to not kill the ants at the bait station, but to get the ants to carry the boric acid back to the nest, poisoning the members of the colony that never leave the nest.
Most ants feed either on sugars or on protein, fats, or oils.
Punch several holes in the lid of the jar, then screw the lid on tightly and seal with tape. The holes should be large enough for the ants to pass through to reach the bait. Place the bait jar on its side where the ants will come in contact with it. If the ants are unable to gain footing on the jar lid, you might want to scratch the surface with sandpaper or a pebble. If the ants are attracted to peanut butter, use that for your bait rather than jelly.