There are four ways you can go, as far as hubs are concerned. You can use a track hub , a flip-flop hub , a freewheel hub , or a cassette hub .
Track hubs have a stepped thread.
The main thread that the sprocket screws onto is the same as that of a normal freewheel hub. Outboard of this, is another threaded secton of slightly smaller diameter. After you screw the sprocket on in the normal manner, and tighten it down securely, the lock ring screws down so that it presses against the outer surface of the sprocket. As a result, the sprocket cannot be unscrewed by the chain, no matter how hard you fight the pedals. It is possible to find them with track threading on both sides, but not easily.