Mothballs are traditionally used to protect clothing and other stored items from moth damage. However, mothballs are increasingly being recognized as a health hazard, particularly to children and pets. If you are looking for an alternative to mothballs, there are a number of options available.
One option is to use cedar chips or blocks. Cedar naturally repels moths and other insects, so it can help protect your stored items. You can buy cedar products specifically designed for this purpose, or simply use some shavings from a piece of cedar furniture. Either way, make sure the chips or shavings are fresh, as older ones may have lost their potency.
Another option is lavender sachets. Like cedar, lavender has natural insect-repelling properties. You can make your own sachets using dried lavender buds (available at many craft stores), or purchase them pre-made. Place the sachet in any storage container with your clothes or other items, and renew it every few months to keep the scent fresh.
If you don't mind using a chemical product, one option is naphthalene flakes (also known as camphor). This substance is effective at repelling moths but should be used with caution due to its toxicity. Naphthalene should only be used in well-ventilated areas and kept out of reach of children and pets; it should also not be used on delicate fabrics such as silk or woolen garments.