A fluorescent chemical sensor for Fe3+ based on blocking of intramolecular proton transfer of a quinazolinone derivative.