Home › Setup guides › MikroTik hotspot login page templates
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.
- Mobile first: large fields and buttons, readable on any phone.
- One file, no external fonts or scripts - it loads even before the guest is logged in.
- Shows MikroTik's error messages (wrong code, already logged in, expired).
- Easy to rebrand: change the venue name, colours and text at the top of the file.
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:
- login.html - the login form. This is the page guests see.
- md5.js - used by the login form to protect the password with CHAP. Keep it in the folder.
- status.html - shown after login (time used, time left, logout link).
- logout.html - shown after logout.
- alogin.html - shown right after a successful login.
- error.html and errors.txt - error page and message texts.
MikroTik fills in variables such as $(link-login-only), $(chap-id), $(chap-challenge), $(link-orig) and $(error) before sending the page.
Install the template
- Download login.html below and change the venue name and colours at the top of the file.
- In Winbox open Files and find the hotspot folder (
hotspotorflash/hotspot). - Rename the old
login.htmlto keep a copy, then drag the new file into the folder. - Keep
md5.jsin the same folder - it comes with every MikroTik hotspot. - 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
- The page looks unchanged - the file went into the wrong folder; check which HTML directory the server profile uses.
- "Invalid username or password" with the right code - the hotspot user or RADIUS answer refused it; check the router log or your RADIUS server.
- Images do not load - images must be in the hotspot folder or in the walled garden, because guests are not online yet.
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.
- Six ready designs for hotels, apartments, events, camps, cafés and beach clubs.
- Voucher, card, PayPal, Tap, crypto, Google, e-mail, SMS and free click-through logins.
- One-tap QR login from printed vouchers and hotel check-in passes.
- A cloud RADIUS server with time, data and speed limits - no User Manager to maintain.
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.