What is the best way to: How to prevent fire embers spitting from the fireplace?

Possible answers:
A). Use a large sheet of mesh wire and fit it to the back of the fireplace, place it there before the fire has started.
B). Use a large sheet of mesh wire and fit it to the front of the fireplace, place it there once the fire has grown.
Answer:
B).