Hi Everyone,
I hope someone can help me with my issue.
I have a hotspot, lets say its login page is login.melrol.com/test?ap_mac_address=$(server-name)&client_mac=$(mac)&client_ip=$(ip)&userurl=$(link-orig)&login_url=$(link-login-only)&error=$(error)$(endif)
Below is the rlogin.hml
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Wifi Login</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="expires" content="-1" />
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;"/>
</head>
}$(if http-status == 302)Hotspot login required$(endif)
$(if http-header == "Location")https://login.melrol.com/test?ap_mac_ad ... r)$(endif)
</script>
<!--
document.login.username.focus();
//-->
function getUrlVars() {
var vars = {};
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
vars[key] = value;
});
return vars;
}
</body>
</html>
I Would like to know if its possible to hide the Login URL for example I can use a virtual hostname login.login.com instead of login.melrol.com