WiFiNexa

Home › Setup guides › MikroTik hotspot login page templates

Free template

MikroTik hotspot login page templates

A free, mobile-friendly login.html for MikroTik hotspots, how to install it in a few minutes, and when a hosted login page saves you the work.

Download login.html (free) Or use hosted login pages

Download the free template

The template below replaces MikroTik's default login page with a clean, responsive design. It keeps MikroTik's own login logic (CHAP with md5.js, or PAP), so it works on RouterOS 6 and 7 without other changes.

How the MikroTik hotspot HTML folder works

Every hotspot server has an HTML directory, usually hotspot (or flash/hotspot on devices with flash storage). The router serves these files to guests before login:

MikroTik fills in variables such as $(link-login-only), $(chap-id), $(chap-challenge), $(link-orig) and $(error) before sending the page.

Install the template

  1. Download login.html below and change the venue name and colours at the top of the file.
  2. In Winbox open Files and find the hotspot folder (hotspot or flash/hotspot).
  3. Rename the old login.html to keep a copy, then drag the new file into the folder.
  4. Keep md5.js in the same folder - it comes with every MikroTik hotspot.
  5. Connect a phone to the hotspot and check the page. Nothing needs a restart.

Check the login methods

In IP → Hotspot → Server Profiles → Login, keep HTTP CHAP on (the template uses it when MikroTik sends a challenge). If you turn on HTTP PAP instead, the template sends the password as typed - only do that on HTTPS login pages.

Common problems

Branded login pages without editing HTML

A template is a good start, but every change means editing files on every router. WiFiNexa hosts the login page for you instead: the MikroTik setup script installs a small login.html that sends guests to your WiFiNexa page, where you change the design, logo, photos, colours and login methods from the dashboard - for all routers at once.

Questions

Where is the MikroTik hotspot login page stored?

In the hotspot server's HTML directory, usually 'hotspot' or 'flash/hotspot', which you can open in Winbox under Files. The guest page is login.html.

Can I use a custom login page on MikroTik?

Yes. Replace login.html in the hotspot folder with your own file and keep md5.js next to it so CHAP logins keep working.

Does the template work on RouterOS 7?

Yes. It uses the standard hotspot variables that RouterOS 6.49+ and 7 provide.

Do I need to restart the router after changing login.html?

No. The hotspot serves the new file to the next guest straight away.

How do I add a logo to the MikroTik login page?

Put the image in the hotspot folder (or a host in the walled garden) and reference it from login.html, because guests cannot reach the internet before they log in.

Related

Try WiFiNexa free for 5 days