They used to make a small thermistor that you inserted into the base before putting in the bulb. I haven't been able to find one recently.
Years ago I scavenged a thermistor from an old television set and wired it into a slide projector. Slide projectors are notorious for the short life of their bulbs but with mine the thermistor burned out before the bulb after several years of use.