We report on a scintillator-based online detection system for the spectral characterization of polychromatic proton bunches. Using up to nine stacked layers of radiation hard polysiloxane scintillators, coupled to and readout edge-on by a large area pixelated CMOS detector, impinging polychromatic proton bunches were characterized. The energy spectra were reconstructed using calibration data and simulated using Monte-Carlo simulations. Despite the scintillator stack showed some problems like thickness inhomogeneities and unequal layer coupling, the prototype allows to obtain a first estimate of the energy spectrum of proton beams.