Cockroaches are easily attracted to your homes and commercial places by food, water, and shelter. The best way to stop them is to stop them from coming inside your home. Remove the food sources such as liquids, standing food, and food remains. Clean the floors, walls, work surfaces, and areas of your kitchen. Do not collect the items such as newspapers, in the boxes else cockroaches can easily hide there. General building maintenance will also help you in preventing these insects from entering your property.