For most carpet stains, a solution of white vinegar and water or a gentle carpet cleaner can be effective. Blot, don’t rub, and always test a small area first.