Hide your Squid Proxy’s internal hostname

Written by James McDonald

August 4, 2009

I recently went to http://whatismyipaddress.com and

And under the front page under “Proxy Server Detected!” I saw the internal hostname of my squid proxy.

Which may or may not be a security problem (giving away an internal domain name and hostname).

So inside squid.conf I set

# add this to /etc/squid/squid.conf
visible_hostname mybogusproxyhostname.local
# and while we are at it stop squid blabbing about it's version aswell
httpd_suppress_version_string on

# then restart squid
/etc/init.d/squid restart

Now my proxy hostname is reported as the visible_hostname setting.

3 Comments

  1. Anthony Collucci

    Hi,

    Very Well, i add your site at my bookmarks,

    att,
    Anthony Collucci
    Network Manager
    A&ATECNOLOGIA – MG – BRAZIL

    Reply
  2. Avin

    This is not work in Squid 2.5.STABLE6. Is in any othe way to do same thing in Squid 2.5 Stable version.

    Reply
  3. amin

    Tnx for the tip. I also found out how to even hide “(squid)”.

    Edit the line that says:
    # via on
    To:
    via off

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Clear HSTS Settings in CHrome

Open chrome://net-internals/#hsts enter the domain in the query field and click Query to confirm it has HSTS settings...

Ubuntu on Hyper-v

It boils town to installing linux-azure # as root or sudo apt-get update apt-get install linux-azure...