Abstract(#br)We report a refractive index sensor consisting of a gold-coated nanoporous anodic alumina membrane on aluminium substrate that can distinguish between different kinds of alcohols such as methanol and ethanol due to their different refractive indices. The nanoporous volume allows the loading of liquids with low surface energy into its nanopores. Upon dipping one end of the membrane into the alcohol, the entire nanoporous surface experiences wetting. The wavelength shift of the Fabry–Perot resonating modes formed between the gold-coated nanoporous alumina surface and aluminium on the other side due to the changed effective refractive index form the basis of the sensor. The sensitivity of the nanosensor to the refractive index of the loaded liquid is sufficient to distinguish between different alcohols such as methanol, ethanol and isopropanol, and to detect about 5–10% of methanol in a methanol–ethanol mixture.