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

    "captive frame" content injection to display banner on every page loaded?

    Captive Portal
    9
    9
    7.4k
    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.
    • D
      deanside
      last edited by

      I've spent 2 days googling this question and I'm surprised it doesn't show up more often (unless I don't know the correct name for this feature – "captive frame"? or maybe "content injection"?).

      In airport or cafe wifi hotspots, there is often a persistent banner at the top of every web page you view.  This might just have the name of the cafe or information like time before your free session expires, etc.  Is it possible to do this in some graceful way with pfsense?  I have a captive portal set up and running fine and I would like to inject a javascript banner into every web page loaded.  Here is similar functionality using coova-chilli (but I already use and love pfsense):

      http://coova.org/node/4656

      Granted it is possible to set up a squid server and modify all cached content before delivery, but this seems like overkill.  Any suggestions?  Am I just missing some obvious way to implement this?  Thanks!

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        The only way I'm aware of is via squid and custom scripts that work with it. There are probably other ways, but nothing in the GUI would do that.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • E
          eri--
          last edited by

          No pfSense does not do this.
          Because you have to proxy every connection going through port 80, 443 and add the banner.

          1 Reply Last reply Reply Quote 0
          • S
            stramato
            last edited by

            i too would like to have something like this.

            Perhaps a small banner on top, maybe 12px in height, displaying Captive Portal session time and a Logout button.

            I am using Squid transparent for everybody (but they have to logon to CP first). Would you think this is possible using Squid?

            1 Reply Last reply Reply Quote 0
            • C
              cosasdelared
              last edited by

              I was looking exactly for this and found this recent post. Any clue on this? If it is about programming, any clue to begin?

              1 Reply Last reply Reply Quote 0
              • R
                Riichard
                last edited by

                Sounds cool. Especially for captive portal session time :)

                1 Reply Last reply Reply Quote 0
                • U
                  ujangs
                  last edited by

                  This is a good idea

                  1 Reply Last reply Reply Quote 0
                  • 9
                    900mhzdude
                    last edited by

                    This is an awesome idea

                    Someone should put in a bounty for it

                    1 Reply Last reply Reply Quote 0
                    • J
                      jonallport
                      last edited by

                      What about instead of redirecting to 'original URL' when passed the portal, redirect to a framed page with banner in one frame, 'original URL' in the other?

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