Spraying your basil with Neem, or insecticidal soap help keep bugs away. Neem spray is the viable option for keeping beetles, aphids, whiteflies, and thrips away from basil.