[squid-users] Cosmetics: How to eliminate HTTP error msg completely ?

From: babajaga <augustus_meyer_at_yahoo.de>
Date: Sun, 2 Feb 2014 02:04:48 -0800 (PST)

Actually, I have a private proxy on the web, set up to be used by me only,
when on the road, in areas of slow wired/wireless connection. Part of it is
to remove ads, when browsing. This is done using local DNS on squid machine,
pointing to 127.0.0.1 for well known ad sites. And a patched web server on
squid machine, always serving minimum content, so no error is visible in the
browser, at least.
This works fine.
Now, quite a few ad providers start using https:\\wellknown.adsite.com .
Which then leads to the following error message in the browser, instead of
the ad:
"The connection has timed out
The server at wellknown.adsite.com is taking too long to respond."
(504 Gateway Timeout)
I assume, because the CONNECT will not get any response from my local
(faked) wellknown.adsite.com

Any suggestion, how/where to hack squid2.7 to also get rid of these ones ?
My idea just now is modifying "504 Gateway Timout" to "204 No Content".
Not knowing https-protocol, will this lead to more errors later on ?
Or any other ideas ?

--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Cosmetics-How-to-eliminate-HTTP-error-msg-completely-tp4664551.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Received on Sun Feb 02 2014 - 10:05:42 MST

This archive was generated by hypermail 2.2.0 : Sun Feb 02 2014 - 12:00:03 MST