Supress connection refused message

User Help for Seamonkey and Mozilla Suite
Post Reply
User avatar
fixit7
Posts: 233
Joined: May 19th, 2015, 3:11 pm

Supress connection refused message

Post by fixit7 »

When a site is blocked by my host file, is there a way to suppress the message?

Failed to Connect

The connection was refused when attempting to contact pubads.g.doubleclick.net.
morat
Posts: 6426
Joined: February 3rd, 2009, 6:29 pm

Re: Supress connection refused message

Post by morat »

You can style the net error messages in Firefox.

Code: Select all

/* Firefox userContent.css */

@-moz-document regexp("^about:neterror\\?.*") {
  html { background-color: black !important; }
  body { display: none !important; }
}
http://kb.mozillazine.org/UserContent.css

I assume SeaMonkey uses similar net error pages.
Last edited by morat on February 28th, 2019, 5:06 pm, edited 1 time in total.
Anonymosity
Posts: 8779
Joined: May 7th, 2007, 12:07 pm

Re: Supress connection refused message

Post by Anonymosity »

Why would you try to access a site that you blocked? If I block access of certain hosts to my browser, it is because I want no contact with them.
Post Reply