Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

OS=Debian squeeze, browser Google Chrome 15.0.874.106

I use the hosts file to block unwanted sites, especially ad sites, from loading into the browser. In Iceweasel/Firefox you can block "unable to connect" error messages by going to "about:config" and setting "browser.xul.error_pages.enabled" to false. Is there a way to get rid of the unwanted error message ( "This webpage is not available" ) in Google Chrome?

share|improve this question

If you are adding unwanted sites to (I do the same thing), you can try running in the background on port 80 with the flags --port=80 --code=200 and change the line:

server_address = ('', int(options.port))


server_address = ('', int(options.port))

So that it only listens to localhost. It will return 200/Ok for any request with a blank body. This way, you don't get an error message, but just a blank, and you still get "unable to connect" error messages from other sites when it is legitimate.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.