Is there a HTML guidline for programming external captive portals on NXC2500?

MKN
MKN Posts: 11
Friend Collector First Comment
edited August 2022 in WirelessLAN
Hi there,

i've some trouble to understand how the HTML pages should send and receive values.
So is there a HTML / CGI Guidline for external captive portals?

THX.
«1

All Replies

  • Zyxel_Joslyn
    Zyxel_Joslyn Posts: 360  Zyxel Employee
    First Anniversary Friend Collector First Answer First Comment
    Hi @MKN

    We do not have  guidline about how to revise external html. If you just want to edit the logo and the font, we suggest you to use our internal captive portal. 
    Go to CONFGURATION > Captive Portal > Custom Cpative Portal > CUstomized page, and add a new page.

    You can upload a pic and revise the message here. There is also advanced settings to let you customize your own captive portal.

    Hope it helps.

    Joslyn
  • MKN
    MKN Posts: 11
    Friend Collector First Comment
    Hi Zyxel_Joslyn,

    thank you for your answer.
    Unfortunatelly I need to do more than just change the Logo or Background.
    I have to write a own external Captive Portal in HTML / JS to show some additional dynamically generated informations about our company to our guests.
    A big problem is to understand the request and replies of cgi on the NXC.   

    Maybe someone had similar projects or some informations for me.

    Thank you
  • Zyxel_Joslyn
    Zyxel_Joslyn Posts: 360  Zyxel Employee
    First Anniversary Friend Collector First Answer First Comment
    edited March 2021
    Hi @MKN

    We have a user guide to customize page of multiple captive portal. It mentioned some cgi explanation.
    Hope it helps.

    Joslyn
  • MKN
    MKN Posts: 11
    Friend Collector First Comment
    Hi, Joslyn,

    thank you, that guide is very good.
    But still got some trouble.
    My main problem is to check if a user is allready logged in and if so, redirect to another page.
    Also my session page shows alway no values...

    Any Ideas?

    Thank you!

    MKN
  • Zyxel_Joslyn
    Zyxel_Joslyn Posts: 360  Zyxel Employee
    First Anniversary Friend Collector First Answer First Comment
    Hi @MKN

    Can you share with me your login authentication will be combined with the third-party server or it's your own web server?
    Did the station see the login page?

    Joslyn
  • MKN
    MKN Posts: 11
    Friend Collector First Comment
    all files are on our own web server in our LAN.
    Yes, the station can see the login page.
    When users had already logged in and reload the login page, they should be redirected to another page (welcome or session)...

    MKN

  • Zyxel_Joslyn
    Zyxel_Joslyn Posts: 360  Zyxel Employee
    First Anniversary Friend Collector First Answer First Comment
    Hi @MKN

    Please use the browser and open the URL as the Http://<web server IP address>/<web page> to ensure if every page can be downloaded successfully.
    If yes, you might need to modify the redirect link.
    If no, please check the web page content.

    Joslyn
  • MKN
    MKN Posts: 11
    Friend Collector First Comment
    Hi, Joslyn,

    all pages are fine.
    I just need some commands to send to the controller to get a feedback if the user is already logged in.
    Something like sending a request to http://[controllerip]/[some cgi].cgi?[some variable]=[some value]
    and get a response.
    Is there any option to do so?

  • Zyxel_Joslyn
    Zyxel_Joslyn Posts: 360  Zyxel Employee
    First Anniversary Friend Collector First Answer First Comment
    Hi @MKN

    Provide an example for you.
    http(s)://external_html?apmac=aa:bb:cc:dd:ee:ff&usermac=aa:11:bb:22:cc:33&apip=192.168.1.35&userip=192.168.1.37&ssid_name=MySSID&apurl=http://192.168.1.35/cgi-bin/login.cgi
    It still depends on your server needs what kind of the format.
    This should be discussed about the server scope.

    Joslyn
  • Greenlight
    Greenlight Posts: 57  Ally Member
    First Anniversary Friend Collector First Answer First Comment
    edited April 2021
    In my understanding, the Controller won't  supply for any login-user inquiries through html. You can only check login user through SSH connection or web GUI.
    By the way, is there any web front end engineer to help you digest the html file? Just think there should have been lots of discussions and approaches for this redirect+authentication case...