A man has been arrested for harassing Christians online and has been banned from any church for five years.