Wearing compression stockings or flight socks during journeys of 3 hours or more can help prevent DVT if you're at an increased risk. The stockings or socks are usually knee length; compression stockings can also be thigh high. They work by putting gentle pressure on your leg and ankle to help blood flow.