Using machine learning to detect bad behavior on the internet