Custom Captive Portal Page: just a clickable image



  • Here is a very basic page, which simply use a whole page sized picture to act as a button, obviously you can use any picture you want for it, just edit it the way you want it before the upload, then you can click on any part of it to be forwarded to the next page.
    Other things that i made to make it possible (maybe some of these are not necessary but that's what i did) are:

    1 = The uri on the captive portal' s field "After authentication Redirection URL" must match the uri you insert in your code (ie: http://www.google.com/)

    2 = In "Services: Captive Portal" i added the uri in the "Allowed Hostnames"



  • Banned

    Dude; enough is enough. This is the THIRD thread you started about the same damned thing… Are you mad or what?

    https://forum.pfsense.org/index.php?topic=100653.0
    https://forum.pfsense.org/index.php?topic=100882.0



  • If anyone else wondered on why so many people put a dislike on Doktornotor, you can see a typical example here, not only he seems unable to understand the difference between somebody offering something and somebody asking for something, but he try so hard to put negativity into everything around himself, including his personal avatar, now Dok, i might feel sorry for the hell you are into, but the very reason for it it's that you are creating it….i would not describe you as "mad" but you surely have something into yourself that it's not right....
    As i feel pity for you, if you need help, i am willing to offer it to you, but you need to talk openly about your problems


  • Banned

    Yeah, congrats, you have discovered a clickable image. Amazing.



  • This :
    @EOC2611P:

    ….
    2 = In "Services: Captive Portal" i added the uri in the "Allowed Hostnames"

    and on the host that you granted 'full access, even if not authenticated by captive portal'
    you can throw any code (PHP, html, aspx, whatever) that show something like this : http://www.design-piscine.fr/ (fill out on ANY device, any viewport) - making it act like a button is more like a 'how good can you ask a question', then this guy:

    (ie: http://www.google.com/)

    told me who to do it.

    Btw : are you letting the visitor authenticate to the portal ?
    If you active the 'local user mananger' on Pfsense==>Captive Protal and add a user like 'test' - password 'test', and hard code these hidden into your html code (see example login page) the click-through wouldn't need the "Allowed Hostnames" : the user will authenticate. After that, only your firewall rules decide then what happens.

    Bringing people to ie www.google.com - a page they can not leave, seems awkward to me.
    Bringing people to a host (a server on a host) so they can authenticate seems complicated to me.
    Any, I guess you didn't tell us everything ;)



  • @Gertjan:

    then this guy:

    (ie: http://www.google.com/)

    told me who to do it.

    Btw : are you letting the visitor authenticate to the portal ?

    Bringing people to ie www.google.com - a page they can not leave, seems awkward to me.
    Bringing people to a host (a server on a host) so they can authenticate seems complicated to me.
    Any, I guess you didn't tell us everything ;)

    Gertjan i am not sure what you meant to say exactly with the rest of your post, anyway, it was not Google that "told me HOW to do it", i did try it, yes, but i couldn't find exactly what i was looking for, so i just went to some other place on the web, where i was able to find someone that answered that request without too many turnings around, leave alone the need that some users here (DoktorNotor & co) have to just criticize and put evilness all around them, instead to contribute positively on something, why ohh why some people have to feel and behave that way toward others it's really beyond me, don't you think that someone posting a request for help maybe has already enough stuff to deal with? Honestly, what it's wrong with people like these ??

    In regard of the system i did choose, a picture which once clicked forward to the next page, which in my specific case it would be a site hosted locally, not accessible from the web and which require local users wishing to access the www, to be first identified, so in case someone eventually do bad stuff around, it can very easily be pin pointed (as we do).
    This first initial page will serve to give the users, most of them with very little experience on a pc, an introduction on what to expect if they wish to make use of this long range wi-fi spot (maybe 5-10km?), it's a local community based project.


Log in to reply