Getting infected by a drive-by download means you must have an out-of-date and vulnerable piece of software somewhere on your system.
Scan for out-of-date and insecure software using Secunia Software Inspector and update any vulnerable software: this will help to prevent future infections.