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

    Login Page, Customization Agreement

    Scheduled Pinned Locked Moved Captive Portal
    7 Posts 3 Posters 1.8k 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.
    • A
      andreirpp
      last edited by

      Good morning, Is there any way in the login page of the captive portal, the user enter their access credentials (user and password), then be redirected to a term of agreement, store that the user has already accepted the agreement term for the next not appear and only from that moment release the access to the internet. ?

      Thank you

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        On the pfSEnse captive portal page, set "After authentication Redirection URL" to any web server where you show your "users agreement".
        This page could even be hosted on pfSense - just upload the page.

        Use some cookie logic on this page so that it is only shows when the visitor doesn't have a cookie. Have the user confirm this page and send over the cookie. Redirect to whatever you want.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 0
        • A
          andreirpp
          last edited by

          Hello Gertjan,

          Thank you for the ideia.

          Regards,

          Andrei

          1 Reply Last reply Reply Quote 0
          • A
            andreirpp
            last edited by

            Gertjan, a doubt, when redirecting to the agreement term, after already authenticated, if the user changes the URL above without having accepted the term, will surf because validation has already been done. Is there any way to release the navigation only after I have accepted the term?

            1 Reply Last reply Reply Quote 0
            • GertjanG
              Gertjan
              last edited by

              @andreirpp:

              Gertjan, a doubt, when redirecting to the agreement term, after already authenticated, if the user changes the URL above without having accepted the term, will surf because validation has already been done. Is there any way to release the navigation only after I have accepted the term?

              Normally, this issue doesn't exist, because you mention the "agreement term" on the form where they login.
              People tend to login when the read and agreed with the terms.

              Having them to login so they see the terms afterwards : doesn't seem ok to me.

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

              1 Reply Last reply Reply Quote 0
              • The Computer GuyT
                The Computer Guy
                last edited by

                @Gertjan:

                Use some cookie logic on this page so that it is only shows when the visitor doesn't have a cookie.

                Just a quick warning about this…

                Apple in their wisdom, have set the popup page you get on the iPhone/iPad etc not to remember cookies etc. I run some Captive Portals with vouchers, that have a "Remember Voucher" button, which works fine on everything except iPhone/iPad. You can circumnavigate this, by opening up apple.com etc (And it's mostly used variants) through the firewall, so that the device can see the "Success" page at Apple.

                I don't particularly like that workaround however!

                1 Reply Last reply Reply Quote 0
                • GertjanG
                  Gertjan
                  last edited by

                  @The:

                  Just a quick warning about this…

                  Apple in their wisdom, ..... .... see the "Success" page at Apple.

                  Hummm. I remember.
                  I tried to create a "logout URL", easy to remember for the visitor, so a "popup page" wasn't needed anymore. Juste type something like "logout.my-portal-pfsense.tld" and the user was logged out, no matter what. A very nice solution for those who like to $$ their connection.
                  The "session ID" has to be stored using a Cookie …. or, as you said, Apple lauches a crippled Safari browser that discards all info (among them : Cookies).
                  There is a huge thread somewhere in this part of the forum about this subject.

                  No "help me" PM's please. Use the forum, the community will thank you.
                  Edit : and where are the logs ??

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