Hide your Squid Proxy’s internal hostname

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

Login

Blog History

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.