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

Leave a Reply to Anthony Collucci Cancel reply

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…

Squarespace Image Export

To gain continued access to your Squarespace website images after cancelling your subscription you have several...

MySQL 8.x GRANT ALL STATEMENT

-- CREATE CREATE USER 'tgnrestoreuser'@'localhost' IDENTIFIED BY 'AppleSauceLoveBird2024'; GRANT ALL PRIVILEGES ON...

Exetel Opt-Out of CGNAT

If your port forwards and inbound and/or outbound site-to-site VPN's have failed when switching to Exetel due to their...