Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am unhappy with google's javascript loading various BS from * domain. I tried telling my firewall to block * but apparently this only blocked loading webpages into the browser. Google's javascript seems to have no trouble loading the Google logo and whatever else it might load.

Any suggestions?

share|improve this question
up vote 2 down vote accepted

You can use a HOSTS file to block connections to a given domain. Pre-made HOSTS files are also available that block ads, banners, trackers etc. from a large number of sources; see this one, for instance.

Other solutions also exist. IE and Opera have built-in ad-blocking features, while Firefox and Chrome have add-ons that offer the same functionality.

share|improve this answer
hosts file is interesting idea, thanks – EndangeringSpecies Apr 15 '12 at 17:54 serves static Googel files; like their Javascript, CSS and images and it's kind of wrong to black that. It functions as a CDN that caches most of the things that Google uses such that they don't have to serve it from itself as that would be very costly in network performance.

You don't need to block that domain name as there really is no point in doing so. Another maintained hosts file that you can find is

Perhaps you could consider to combine both hosts files provided in these answers, first try replacing by because that's a better approach at blocking (it doesn't do requests to the local host) and if that doesn't work then replace in the reverse direction.

I'm heavily against extensions that process your web pages as in comparison to a DNS change that really slows down your browser experience as it obstructs the download/process/render loop...

share|improve this answer

You could use an ad-blocking solution for your browser. I use Opera, and it has a build-in content blocker. It uses a file called urlfilter.ini where you can define patterns of URLs that will be blocked. Similar solutions exist for most browsers (Firefox, Chrome).

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .