Discriminative sensing for mixture by either fluorescent sensor or other sensors remains a challenge. This issue is attributed to the absence of a separation unit prior to the sensor. Here, we report a new sensing medium, named porous fluorescent monolith, which can separate mixture and meanwhile be integrated into a sensor for discriminative detection. The fluorescent monoliths are prepared via polymerization of 4,4',4",4