This section is from the book "The Boy Mechanic Vol. 2 1000 Things for Boys to Do", by Popular Mechanics Co.. Also available from Amazon: The Boy Mechanic, Vol2: 1000 Things for Boys to Do.
Suspend a shelf, breadbox or rack with wire around which is tied a piece of cotton cloth, saturated with a mineral oil. The ants will not cross the oil-soaked cloth.
Some strong wire hooks attached to the rack or shelf answer well to hang small articles on, such as bacon, bags of sugar, syrup cans, etc. - Contributed by C. B. Hosford, Swansea, Ariz.