Most computer viruses come to you via removable media, be it a CD, DVD, USB thumb drive or an external hard disk. They don’t wait for you to run the virus executable program. How does it run then?
It’s the AUTOPLAY in your Windows PC. Everytime you insert a CD (or other media), windows finds for the AUTORUN.INF file inside the media that says which file to run by default. And you guessed it right, the AUTORUN.INF says “run the virus!”
How to prevent the virus autorun
Your best and top-priority effort to prevent a virus attack is to disable the autorun feature in Windows. You can do it in any of the following methods:
- Click Start, click Run, type regedit in the Open box, and then click OK.
- Locate and then click the following entry in the registry:
- Right-click NoDriveTypeAutoRun, and then click Modify.
- In the Value data box, type 0xFF to disable all types of drives.
- Click OK, and then exit Registry Editor.
- Restart the computer.
Download this tool from Microsoft and run it. It will disable autorun on your drives.
That’s it. Next time you insert a CD or USB drive, nothing will run on its own!