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

    Trying to create no-auth zero user input captive portal

    Scheduled Pinned Locked Moved Captive Portal
    4 Posts 3 Posters 1.7k 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.
    • D
      docwho76
      last edited by

      Hey guys! Got a bit of a problem I am stuck on here. Hope someone can help. I am trying to create a captive portal that requires zero user intervention that will just redirect their first request to a URL of my choice. I've already turned off all authentication, but this still requires the users to hit the Continue button on the login page to proceed to the after-auth URL redirect. I need to eliminate it completely.

      My thoughts on this were to embed javascript into the login.html form to force it to auto-submit itself on load. I've tried this and all that seems to happen is the login page just constantly reloads itself. Below is my login page code:

      I added the div display style none so the form wouldnt even be visible to the end user so it would just look like a redirect to them. Can anyone help out here? Really would appreciate it, thanks!

      1 Reply Last reply Reply Quote 0
      • L
        lsense
        last edited by

        I cant't get the point.
        So why do you want a captive portal?

        Just disable it to have a "zero user input" access to your net.

        1 Reply Last reply Reply Quote 0
        • D
          docwho76
          last edited by

          I require the captive portal because a client would like new users on their wifi network to be redirected to a particular website, but they want the users to not have to do anything for this to work. Hence why I am trying to make it work the way I am.

          1 Reply Last reply Reply Quote 0
          • jdillardJ
            jdillard
            last edited by

            When you submit via javscipt it doesn't send the submit value so you have to add it as a hidden value.

            Here is the code:

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