The paper presents a comprehensive investigation of the ultraviolet-filtration properties of a quasi-onedimensional photonic crystal using the transfer matrix method. The photonic crystal structure forms a periodic stack that exhibits photonic suppression regions. By tailoring the layer thicknesses, we have designed a photonic crystal filter that selectively transmits ultraviolet light while efficiently suppressing unwanted wavelengths. Moreover, we demonstrate that a similar effect can be achieved by introducing an interlayer air gap, which, in turn, makes it possible to adjust the system during operation. Through rigorous simulations, the transmission characteristics of the proposed photonic crystal filter have been analyzed. The simulation results demonstrate that the filter exhibits a high degree of ultraviolet light transmission within a specific wavelength range, while effectively suppressing other wavelengths in the visible and near-infrared regions. The ability to selectively transmit ultraviolet light can be utilized in various fields, such as solar energy harvesting, ultraviolet photodetection, and optical sensing.