Windows hosts file to protect vs just about anything
Posted: 11 Nov 2011, 06:19
Ok, so, I've been getting increasingly upset at firefox. On windows, FF is sluggish. With ff8 it got better, but chrome works instantly and is ready for business right away.
The two things holding me back were:
Adblock plus just hides the ads on chrome, the content is still loaded, just hidden.
No master password function.
Now, with adblock plus, that is a big deal to me, so I decided to be smart and use the windows hosts file to cut out the middleman.
Obviously, this has the downside of not being something you just lolclick and maek update, but the upside of hardcore lolblock.
This hosts file is almost 1mb large. It blocks all known ad servers (as of yesterday night), adobe's draconian activation servers (trust me on this one, never buy an adobe product, it sucks balls), and has a current list of spybot S&D immunization listings. So, basically, it's pretty comprehensive.
It occurred to me today that it might be useful to some of you.
Suggested edits (things I did to make my life easier):
Google ip address hardcoded for when your dns servers fail. You can do this with other sites too, but I don't recommend it as those sites IP addresses may actually change on occasion (like when the spring site switches servers), while google's ip is unlikely to ever change. This is the advantage of owning server farms all over the world.
The other thing is already in here, and that is to map "mycomputer.com" to 127.0.0.1. Yes of course localhost works just fine, but having a more typical "domain" name for it comes in handy. Especially for web apps that whine about "localhost". I use WAMPserver locally for php development, so for me this is a nice addition.
I have blathered on enough. Hopefully some of you have use for this. If you don't know how to edit your hosts file: http://helpdeskgeek.com/windows-7/windows-7-hosts-file/
Remember that the hosts file is marked as read only, so you need to remove that flag first (right click > properties). Remember to set it back to read-only when you are done editing!
Also, make a backup of your original hosts file as a just in case measure. It should be fine to simply copy and paste the contents of the attached file directly over your existing hosts file.
The two things holding me back were:
Adblock plus just hides the ads on chrome, the content is still loaded, just hidden.
No master password function.
Now, with adblock plus, that is a big deal to me, so I decided to be smart and use the windows hosts file to cut out the middleman.
Obviously, this has the downside of not being something you just lolclick and maek update, but the upside of hardcore lolblock.
This hosts file is almost 1mb large. It blocks all known ad servers (as of yesterday night), adobe's draconian activation servers (trust me on this one, never buy an adobe product, it sucks balls), and has a current list of spybot S&D immunization listings. So, basically, it's pretty comprehensive.
It occurred to me today that it might be useful to some of you.
Suggested edits (things I did to make my life easier):
Google ip address hardcoded for when your dns servers fail. You can do this with other sites too, but I don't recommend it as those sites IP addresses may actually change on occasion (like when the spring site switches servers), while google's ip is unlikely to ever change. This is the advantage of owning server farms all over the world.
The other thing is already in here, and that is to map "mycomputer.com" to 127.0.0.1. Yes of course localhost works just fine, but having a more typical "domain" name for it comes in handy. Especially for web apps that whine about "localhost". I use WAMPserver locally for php development, so for me this is a nice addition.
I have blathered on enough. Hopefully some of you have use for this. If you don't know how to edit your hosts file: http://helpdeskgeek.com/windows-7/windows-7-hosts-file/
Remember that the hosts file is marked as read only, so you need to remove that flag first (right click > properties). Remember to set it back to read-only when you are done editing!
Also, make a backup of your original hosts file as a just in case measure. It should be fine to simply copy and paste the contents of the attached file directly over your existing hosts file.