A MikroTik Hotspot login page is the "captive portal" that users see when they connect to your Wi-Fi network before they are granted internet access. Customising this page allows businesses like cafes, hotels, and WISPs to brand their guest experience, collect user data, or provide self-registration options. Core Components of a Template
A functional MikroTik login template is primarily built on standard HTML/CSS, but it must include specific "variables" that allow the router (RouterOS) to process logins.
Login Form Variables: The form must use $(link-login-only) as the action. Essential hidden input fields include dst (the destination URL the user originally wanted) and popup. Authentication Methods:
HTTP CHAP: The default and most secure method; it uses a JavaScript function (doLogin) and md5.js to hash passwords before sending them to the router.
HTTP PAP: A simpler method that sends passwords in plain text. This is often required if you remove JavaScript or use custom external forms. Key System Links: hotspot login page template mikrotik link
$(link-login): Link to the login page with the original requested URL.
$(link-status): Link to the page showing the user's current session status (uptime, data usage). $(link-logout): Link for the user to end their session. How to Install a New Template Hotspot page template - General - MikroTik community forum
To set up a custom MikroTik hotspot login page, you must replace the default login.html file in the router's internal storage with your chosen template and then update the server profile to point to that directory. 🛠️ Core Installation Guide Follow these steps to upload and activate a new template:
Prepare the Template: Download or create your template. Ensure the folder contains the essential login.html file, along with any required CSS, images, and JS. Upload to MikroTik: Open Winbox and connect to your router. Navigate to the Files menu. A MikroTik Hotspot login page is the "captive
Drag and drop your new template folder directly into the root directory or inside the existing hotspot folder. Activate the New Page: Go to IP > Hotspot. Select the Server Profiles tab. Double-click your active profile (e.g., hsprof1).
In the HTML Directory field, select the folder you just uploaded. Click Apply to make the new login page live. 🌐 Top Sources for Templates Description Source Link Ilhamuddin Sirait
Wide variety of free, responsive templates (Gaming, Office, Terminal styles). View Templates MakerTik Studio
A web-based tool to generate custom responsive templates with your own logo and colors. Use MakerTik MikroTik Forum External Assets: MikroTik routers have limited CPU power
Community-shared "crystal" and minimalist templates with installation discussions. Forum Thread GitHub Repos
Minimalist designs featuring background sliders and modern layouts. YuukioFuyu Repo ⚠️ Critical Deep Guide Tips Full MikroTik Hotspot + User Manager RouterOS 7 Setup
<img src="https://your-website.com/logo.png">..js file to the router to save space.<form> element or the hidden inputs (dst, popup). If you remove these, the router will not know where to send the user after they type their password.Using the default MikroTik hotspot page hurts your business. Here is why you need a custom template linked to your router:
When you paste a MikroTik hotspot login page link into your browser, you might see errors. Here is how to fix them: