Tackling hate speech and terrorism on social media