Ad Widget

Collapse

Hide version in php frontend

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vins
    Member
    • Feb 2009
    • 31

    #1

    Hide version in php frontend

    I don't see any reason for showing zabbix version in php frontend and I see many reasons to hide it (security, mainly).

    To hide php frontend version you have to modify line 91 of include/page_footer.php from this:
    S_ZABBIX.SPACE.ZABBIX_VERSION.SPACE.S_COPYRIGHT_BY .SPACE.S_SIA_ZABBIX,

    to this:
    S_ZABBIX.SPACE.S_COPYRIGHT_BY.SPACE.S_SIA_ZABBIX,

    I think this will help to strengthen zabbix and make it more secure.
  • Jun.Liu
    Member
    • Apr 2007
    • 91

    #2
    Good suggestion.

    BTW, do you know how to enlarge the font size of the sub-menu or other fields? I tried to modify the related setting in frontend/styles/table.css. but only work on main menu.

    Comment

    • vins
      Member
      • Feb 2009
      • 31

      #3
      css_bb.css (line 45)

      a.highlight {
      font-size:10px;
      font-weight:bold;
      }

      Comment

      • Jun.Liu
        Member
        • Apr 2007
        • 91

        #4
        thanks your reply. it seems only work on the blue&black theme but not the default(original blue) theme. the css_ob.css is empty and nothing found in default.css... any hint?

        Comment

        • vins
          Member
          • Feb 2009
          • 31

          #5
          sorry. i use blue&black theme (original blue looks too ugly for me!)

          menu elements' font size is defined in table.css (line 806)

          table.menu td {
          border:1px solid #AAAAAA;
          color:#FFFFFF;
          font-family:verdana,arial,helvetica,sans-serif;
          font-size:10px;
          font-weight:bold;
          }


          i think that submenu elements's font size is defined in link.css (line 8)

          a.highlight {
          font-size:10px;
          font-weight:bold;
          }

          Comment

          • Jun.Liu
            Member
            • Apr 2007
            • 91

            #6
            yeah, exactly those two files. thanks a lot!

            Comment

            • nelsonab
              Senior Member
              Zabbix Certified SpecialistZabbix Certified Professional
              • Sep 2006
              • 1233

              #7
              I think removing it outright is not a good solution either, it should be moved to a sub menu somewhere. The main reason why you would not want to remove it, maintenance. :-) I think the best of both worlds would be to move it to the administration menu somewhere as only Zabbix Super Admins should have privs to that.
              RHCE, author of zbxapi
              Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
              Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

              Comment

              • vins
                Member
                • Feb 2009
                • 31

                #8
                maintenance? administrators don't need to connect via web to know which zabbix version is installed. they can see it via shell.

                i don't see any advantage publishing the version in the web. in my humble opinion, it just helps malware crawlers to find you earlier.
                Last edited by vins; 11-08-2010, 12:44.

                Comment

                • zalex_ua
                  Senior Member
                  Zabbix Certified Trainer
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • Oct 2009
                  • 1286

                  #9
                  zabbix version in php frontend defined in this file:
                  /include/defines.inc.php

                  see:
                  define('ZABBIX_VERSION','1.8.3');

                  simply edit to:
                  define('ZABBIX_VERSION','');
                  and no version displayed for all themes

                  or:
                  define('ZABBIX_VERSION','Version is secured');

                  Comment

                  Working...