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…

Toggen builds a new website

So I have built and hosted a new website for Roger Clark Pest Management they are a family owned and operated Pest...

WizTree

Just downloaded WizTree (not a sponsor) from https://wiztreefree.com/ It seems to do what it says on the tin which is...

Scam call from “Telstra”

Just had a call from a man with a sub-continental accent from caller ID 0734946596 Told me there was problem with my...