The correct option is (b) from.
The cars were stopped from going any further due to a traffic diversion.
"Stop someone/something from doing something" is the correct prepositional usage. The verb stop collocates with from when followed by a gerund (-ing form). The other options — to, within, by — do not fit this grammatical structure.