Apply baking soda: Sprinkle a generous amount of baking soda over the stained area. Baking soda helps to absorb moisture and odors. This will also help reduce spreading on the back side of the carpet.
Note the location, color, and texture of the stain to figure out what it could be from. Water, grease, and tannin stains will all require different cleaning methods, as will different countertop ...