British Foreign & Commonwealth Office has an entry requirements section for every country in the world. This includes a passport validity section. However, it's not infallible and you should always double-check the information given with the IATA handbook used by airlines which you can find online at the IATA Travel Centre above.