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 *

You May Also Like…

How to Research a CPU Upgrade

How to Research a CPU Upgrade

Upgrade Time! Doing a lot of VMWare Workstation virtualization to create labs for self-study and training. Finding...