I'm not sure if this will be effective for you, but I find that doing the sign of the cross on my forehead dispels bad thoughts extremely quickly. Follow this up with the Jesus prayer, and if they manage to make it through, cross your forehead again. Wash, rinse, and repeat.

Lord, have mercy on thy servant!