depeding on age of boiler it may be inside the combustion chamber on the right hand side. it will be on a small round black thermostat which will have 2 wires coming off of it and a small red button in the centre of it. this should be done by a qualified engineer as you need to disturb the combustion seal, and you should have them investiagte the cause of the overheating.
Ian, January 2010