Here is a script that a co-worker created which I slightly modified. Basically, the script works very similar to MVPS Host File patching here.
The script is compatible with Windows XP, Vista and 7.
To patch your HOSTS file which is arguably one of the most effective ways to block known bad sites (domains) from even opening in your browser (of any kind):
1- Download the attached MDBL.zip to anywhere on your PC, desktop would be fine.
2- Extract the file contents.
3- To patch the Host file, double-click on MDBL.bat
4- Script will automatically execute to following steps:
- Connect to www.malwaredomainlist.com and download the latest list of known bad domains
- Make a backup copy of your existing Hosts file if one didn't already exist
- Add the list to the Hosts file (so when anyone attempts to open any of sites on the list, the browser will display something like "Page not found")
- Run the nbtstat -R command to purge and reload the remote cache name table so a reboot of the computer would not be needed
Click HERE if you'd like to see the screenshot in full size.
Note: If for any reason, you need to restore your original Hosts file, double-click on Undo.bat which instantly and quietly reverts the changes.
~TL




