How to remove the color of white socks when they are dyed?

I believe that many people like white socks, but white socks have a big disadvantage. They are too easy to dye, especially when washed with other colored clothes, it is easy to dye other colors. So, how to wash off the white sock dye? Are there any tips to avoid dyeing white socks?
Chinese blank sock printing

What if the white socks are dyed

1. 84 disinfectant
First wash socks with laundry detergent, dilute 84 disinfectants with boiling water, and then soak socks. The color of socks will be restored in about 15 minutes.

Note: Do not use inventory solutions directly. Suitable for white clothes made of cotton, linen and polyester.

2. Soak hydrogen peroxide
Put some cold water into the basin. You don’t need too much water, just soak your socks. Then pour a small amount of hydrogen peroxide into the basin. The reference ratio is 1:10, part of hydrogen peroxide, and then stir evenly. Soak the socks for 5 minutes to solve the dyeing problem.