While mucosal inflammation is a major source of stress during enteropathogen infection, it remains to be fully elucidated how the host benefits from this environment to clear the pathogen. Here, we show that host stress induced by different stimuli mimicking inflammatory conditions strongly reduces the binding of Shigella flexneri to epithelial cells. Mechanistically, stress activates acid sphingomyelinase leading to host membrane remodeling. Consequently, knockdown or pharmacological inhibition of the acid sphingomyelinase blunts the stressâdependent inhibition of Shigella binding to host cells. Interestingly, stress caused by intracellular Shigella replication also results in remodeling of the host cell membrane, in vitro and in vivo, which precludes reâinfection by this and other nonâmotile pathogens. In contrast, Salmonella Typhimurium overcomes the shortage of permissive entry sites by gathering effectively at the remaining platforms through its flagellar motility. Overall, our findings reveal host membrane remodeling as a novel stressâresponsive cellâautonomous defense mechanism that protects epithelial cells from infection by nonâmotile bacterial pathogens.