D
D
DenZel2016-10-29 14:42:58
Computer networks
DenZel, 2016-10-29 14:42:58

How to set up an automatic transition to the site through Hotspot Mikrotik?

Good afternoon everyone! I ran into this problem:
It was necessary to set up a redirect via Hotspot to the desired site.
Completed the following. actions:
1. added a single line to login.html: $(link-login-only)?dst= mail.ru/&username=T-$(mac-esc)
2. added IP: mail.ru to
guard connecting to a Wi-Fi network, the following is written in the pop-up page:
192.168.10.1/login?dst=http://mail.ru/&username=T-...
What could be the reason? I understand that local authorization through Mikrotik does not work ....
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Minets, 2016-11-03
@gen4_gdm

There should be full html...
For example:

<html>
<head>
<title>Hotspot</title>
</head>
<body>
<div align="center">
<br><br><br><b>Скажи мне, милый ребёнок: в каком ухе у меня жужжит?</b>
<br><br><br>
<a href="$(link-login-only)?dst=mail.ru/&username=T-$(mac-esc)">правом</a> или <a href="$(link-login-only)?dst=mail.ru/&username=T-$(mac-esc)">левом</a>?
</div>
</body>
</html>

Then wherever we click (right or left), it will go to mail.ru

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question