Skip to content

Instantly share code, notes, and snippets.

@unifispot
Created May 13, 2016 20:18
Show Gist options
  • Select an option

  • Save unifispot/2a74660de38b96642162b0290b947ed4 to your computer and use it in GitHub Desktop.

Select an option

Save unifispot/2a74660de38b96642162b0290b947ed4 to your computer and use it in GitHub Desktop.
Unifi Portal Redirection Script
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="1;url=http://<SITEADDRES>/guest/s/<SITEID>/?ap=<unifi var="ap_mac" />&id=<unifi var="mac" />&ssid=<unifi var="ssid" />">
<script type="text/javascript">
window.location.href = "http://<SITEADDRES>/guest/s/<SITEID>?ap=<unifi var="ap_mac" />&id=<unifi var="mac" />&ssid=<unifi var="ssid" />"
</script>
<title>Page Redirection</title>
</head>
<body>
<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
If you are not redirected automatically, follow the <a href='http://<SITEADDRES>/guest/s/<SITEID>/?ap=<unifi var="ap_mac" />&id=<unifi var="mac" />&ssid=<unifi var="ssid" />'>click</a>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment