Landfills provide an abundant and predictable food source for avifauna. The energy and time that are saved because of landfill‐foraging have had positive effects on the distribution of bird breeding populations and their reproductive parameters. However, the proliferation of individuals coinciding with the appearance of landfills often increases human–wildlife conflicts and intensifies the contact between waste and the environment. In this context, a landfill in Madrid (Spain) implemented deterrent measures in 2021 aiming to reduce the influx of birds inside its facilities. This study aims to describe the effects that a reduction in the accessibility and availability of landfill food resources may have had on the surrounding breeding populations of White Stork Ciconia ciconia. For this purpose, the breeding parameters of three populations with different landfill use indices were analysed before and after the application of bird deterrent measures. The closest population, with the highest landfill use index, suffered a drastic reduction in fledgling productivity during the breeding season with bird deterrent measures. On the other hand, a drought during one of the breeding seasons negatively affected the productivity of the populations that relied partially and completely on natural food resources (located at medium and long distance from the landfill, respectively). Landfill‐foraging might have mitigated the consequences of the natural food scarcity caused by this drought, even with the application of bird deterrent measures. Overall, our results show the potential negative impact of bird deterrent measures on populations dependent on landfill food, and highlight the importance of assessing the effect of these techniques beyond the site to determine their appropriateness. Due to the imminent closure of landfills and the expected worsening consequences of climate change, monitoring programmes should be established to determine the long‐term effects of bird deterrent measures and unusual environmental conditions on White Stork populations.