While photonics is broadly considered as a leading solution for analog RF processing, photonic RF filters often show a limited out-of-band rejection. In this work we demonstrate a high rejection and high steepness photonic RF bandpass filter based on spectral hole burning in a rare earth ion-doped crystal. The filter is obtained by programming a frequency-selective absorption grating in the crystal. With an experimental and theoretical study we identify the optimal parameters for this filter. We achieve a remarkable rejection of 60 dB and a rejection of 45 dB at 50 MHz from the edge of the filter, 20 dB higher than most photonic RF filters and compliant with most demanding applications.