Although occasionally used as snake repellent, mothball use as a rodent, squirrel, or bat repellent is illegal in many areas, and tends to cause more annoyance and hazard to humans than to the target pest.[3][2] However, mothballs continue to be advertised as squirrel repellent and are an ingredient in some commercial vermin and snake repellent products.