Backflow prevention devices work by plugging up the drain if water starts to flow the wrong way, thus preventing water backing up and flooding your basement. Most floor drains however will be connected to pipes carrying wastewater and sewage away from the house.