1

I'm trying to set a Default HTML Page to be opened after wifi connects automatically. Kinda like the Login page. I've tried writing a few javascript lines to make the redirect work but after redict, there is no content within my HTML.

Is it possible to set an HTML page instead of the login page to be opened directly after wifi connect with MikroTik?

Valkyrie
  • 113
  • 1
  • 4

2 Answers2

2

When using the Mikrotik hotspot functionality the login page is displayed which is stored on the Mikrotik router. This page is called login.html and can be modified to your needs.

If you want to use an external site to display to your users you can modify login.html with http meta refresh to redirect to an external url. You may want to add this URL to the walled garden so it can be accessed.

When the page is displayed, the user is not logged in. A HTTP POST must be done with a username and password to login the user and access other sites. You can do this by adding a form to the external site or the login.html page to login the user with one click. Without the login any request will be redirected to the login.html page and/or your external site.

Joffrey
  • 2,021
  • 1
  • 12
  • 14
0

MikroTik calls this the Hotspot Gateway. You can begin the setup with /ip hotspot setup or from IP > Hotspot from Winbox. Check the wiki page for several more in-depth examples.

Michael Hampton
  • 244,070
  • 43
  • 506
  • 972