This work presents the development and design of aptasensor employing porous silicon (PSi) Fabry‒Pérot thin films that are suitable for use as optical transducers for the detection of lactoferrin (LF), which is a protein biomarker secreted at elevated levels during gastrointestinal (GI) inflammatory disorders such as inflammatory bowel disease and chronic pancreatitis. Here, LTF is linked to chronic pancreatitis.