Having your carpet treated with a carpet protector is a great investment. Once we clean your carpet have us apply a protector and if you act quickly you will be able to remove many stains that would otherwise set in.
Keep in mind that the longer it is before you act the more likely that the stain will become permanent, even with a protector applied, and no carpet is completely stain proof.
If you do have a spill, blot the stain with a dry white absorbent cloth or towel. Do NOT scrub the area!
Work from the outside-in to minimize spreading the stain.
If your spill is dry, vacuum the spill before trying other methods. If it is semi-solid, gently lift the staining material with a round spoon.
Carpet protectors will help improve the effectiveness of these strategies.