Change pfSense page title
Posted on Wed 01 August 2018 in Hacks (wannabe) • 1 min read
The very first web page of pfSense you see is login page. The problem is that HTML title of this page is ALWAYS "Login". If you have, like me, more than one pfSense istances you could have problems with KeePassXC Auto-Type feature.
I don't know yet why but Auto-Type do not recognize URL and always look at the title of page.
If title is always the same KeePassXC will present all pfSense login entries from its database.
Simple hack is to SSH to pfSense and edit one file:
/etc/inc/authgui.inc
Change line no: 267 (in 2.3.4-RELEASE-p1).
<head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="<?=$cssfile?>" /> <title><?=gettext("Login"); ?></title> <script type="text/javascript"> //<![CDATA{ var events = events || []; //]]> </script> </head>
Put some text right after <title> tag:
<title>MYSITE <?=gettext("Login"); ?></title>
Refresh pfSense login page and you will notice the change.