Certain exceptions to the ban on alcohol apply. Alcohol derived from a source other than the grape (or its byproducts) and the date[115] is allowed in "very small quantities" (loosely defined as a quantity that does not cause intoxication) under the Sunni Hanafi madhab, for specific purposes (such as medicines), where the goal is not intoxication. However, modern Hanafi scholars regard alcohol consumption as totally forbidden.[116]
Other drinks called "wine", such as barley wine and rice wine (e.g. sake), are made from starch-based materials and resemble beer more than traditional wine, while ginger wine is fortified with brandy. In these latter cases, the term "wine" refers to the similarity in alcohol content rather than to the production process.[67] The commercial use of the English word "wine" (and its equivalent in other languages) is protected by law in many jurisdictions.[68]

Some foods not from animal or plant sources include various edible fungi, especially mushrooms. Fungi and ambient bacteria are used in the preparation of fermented and pickled foods like leavened bread, alcoholic drinks, cheese, pickles, kombucha, and yogurt. Another example is blue-green algae such as Spirulina.[6] Inorganic substances such as salt, baking soda and cream of tartar are used to preserve or chemically alter an ingredient.