Instead of yelling and spanking which don't work anyway I believe in finding creative ways to keep their attention - turning things into a game for instance. And when they do something good positive reinforcement and praise.
Ideas are only lethal if you suppress and don't discuss them. Ignorance is not bliss it's stupid. Banning books shows you don't trust your kids to think and you don't trust yourself to be able to talk to them.