A tight-weave cloth or coffee filter allows necessary airflow for fermentation while preventing fruit flies from accessing the brew.