Shin splints can be treated with rest, ice, and over-the-counter anti-inflammatory medications (ask your doctor first).
Shin splints can be prevented by properly stretching prior to and after exercise, sports, or activity. Corrective shoes or corrective orthotics can also be used to prevent shin splints.