Captive Portal with I agree button - No authorization



  • pfSense 2.3

    Trouble getting this to work.

    I'm an not using any authentication.
    Is this supported? All I want to do is have user click "I agree" Button and be redirected to a google.com or wherever with web access.
    Once the button is submitted, it doesn't do anything…

    Anyone else doing this? Sample code?

    Thanks



  • I think if you just click the radio button for "No Authentication under your Captive Portal settings, it will work. I think the sample page with the username and password are still visible but the 'Continue' button will just click through. I'm not much of a programmer but I would think you could just remove the username and password fields from the code and it would work. Hope this helps a bit.



  • Correct, you can remove the user name and password stuff from the sample code and leave continue. I have it setup at a hotel with the TOS listed and saying by clicking continue you agree to the TOS.



  • @PSBITGuy:

    pfSense 2.3
    Trouble getting this to work.
    I'm an not using any authentication.
    Is this supported? All I want to do is have user click "I agree" Button and be redirected to a google.com or wherever with web access.
    Once the button is submitted, it doesn't do anything…
    Anyone else doing this? Sample code?

    I guess it's easy to do so.

    Create a Local user and password on pfSense.
    Create a hand made captive portal html file (using the example as a start).
    But :
    Hard code the user name and password into this html file. Using the html magic to make these two items 'hidden'.
    Code a simple OK button.
    Done ;)


Log in to reply