Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Hostname as title on login page?

    Scheduled Pinned Locked Moved webGUI
    3 Posts 2 Posters 859 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      Nsixtyfour
      last edited by

      Is it possible to have the hostname in the title of the main login page? I don't know php and couldn't figure it out myself, but I noticed all pages have

      ['system']['hostname'] . "." . $config['system']['domain'] . " - " . $pagetitle
      

      except the main login page.

      1 Reply Last reply Reply Quote 0
      • P
        phil.davis
        last edited by

        It is possible with code like this, for example: https://github.com/phil-davis/pfsense/commit/5f93be127c0296a77c057a302389ec0d4fecf063
        But not everyone would want that - for security/privacy many people will not want to display the host name to just anybody who brings up the login page.
        So it would have to be an option to switch on from System->Advanced, Miscellaneous somewhere.

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

        1 Reply Last reply Reply Quote 0
        • N
          Nsixtyfour
          last edited by

          I actually meant as the <title>so it shows up in the text on the browser tab, but you provided enough info for me that I was able to get it working.<br /><br />I understand not everybody would want that and an option would be best. This is just for my home use so it's not really a concern for me and this makes things easier.<br /><br />Anyways thank you for your help, it was exactly what I needed.</title>

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.