Mikrotik tidak langsung ke login page


Status
Not open for further replies.

agil

Poster 2.0
selamat sore
numpang tanya..kebetulan saya setting hotspot di mikrotik
semua sudah oke, login page juga sudah bisa digunakan.

tapi agar terkoneksi dengan internet kita harus mengetik alamat domain atau IP di login page di browse.

tapi dibeberapa hotspot saya lihat, ketika kita mau buka web apa aja, misalnya google, detik. dll semua langsung diarahkan ke login page mikrotik.
 

natanetwork

Hosting Guru
Verified Provider
Iya bisa jg.. kalo yg ga otomatis itu karena di login hotspot nya belum ada ssl https..
Jadi kalo buka web https dia ga redirect ke halaman login hotspot.. kalo buka web http bisa otomatis redirect ke login hotspot.

Solusi ya..
dipasang dulu aja ssl https nya di halaman login hotspot
 

zens

Hosting Guru
Verified Provider
Buka alogin.html pada mikrotik di menu File–>hotspot–>alogin.html
<html>
<head>
<title>mikrotik hotspot > redirect</title>
<meta http-equiv=”refresh” content=”0; url=http://www.zen.web.id“>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
<meta http-equiv=”pragma” content=”no-cache”>
<meta http-equiv=”expires” content=”-1″>
<style type=”text/css”>
<!–
textarea,input,select {
background-color: #FDFBFB;
border: 1px #BBBBBB solid;
padding: 2px;
margin: 1px;
font-size: 14px;
color: #808080;
}

body{ color: #737373; font-size: 12px; font-family: verdana; }

a, a:link, a:visited, a:active { color: #AAAAAA; text-decoration: none; font-size: 12px; }
a:hover { border-bottom: 1px dotted #c1c1c1; color: #AAAAAA; }
img {border: none;}
td { font-size: 12px; color: #7A7A7A; }

–>
</style>
<script language=”JavaScript”>
<!–
function startClock() {
$(if popup == ‘true’)
open(‘$(link-status)’, ‘hotspot_status’, ‘toolbar=0,location=0,directories=0,status=0,menubars=0,resizable=1,width=290,height=200’);
$(endif)
location.href = “http://www.zen.web.id“;
}
//–>
</script>
</head>
<body onLoad=”startClock()”>
<table width=”100%” height=”100%”>
<tr>
<td align=”center” valign=”middle”>
You are logged in
<br><br>
If nothing happens, click <a href=”$(link-redirect)”>here</a></td>
</tr>
</table>
</body>
</html>

Ganti http://www.zen.web.id pada script diatas dengan https://www.google.com
 

agil

Poster 2.0
Iya bisa jg.. kalo yg ga otomatis itu karena di login hotspot nya belum ada ssl https..
Jadi kalo buka web https dia ga redirect ke halaman login hotspot.. kalo buka web http bisa otomatis redirect ke login hotspot.

Solusi ya..
dipasang dulu aja ssl https nya di halaman login hotspot

terima kasih pencerahannya
tapi untuk ssl https harus berbayar ya?
 
Status
Not open for further replies.

Top