As an alternative, you can use a heavy-duty detergent – but not only stains but also colors could fade.
Or you can choose a household remedy: Treat the fresh stain directly with hand soap – dab the area, soap it up properly, then let the soap take effect. According to “test”, red wine and grass stains have almost completely disappeared after washing. With home remedies such as salt, lemon or baking soda, however, the pre-treated stains were still clearly visible after washing.
Important for stains containing protein such as blood or cocoa: First, only clean with cold water so that the protein does not coagulate.