Answer :
You would place it in orbit around Earth, as most X-rays are absorbed by the atmosphere, so you would want the detector outside of the atmosphere to accurately detect the X-rays.
A good place for the detector would be somewhere in orbit around the earth, because X-rays are absorbed by the atmosphere.