-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsplash.html
108 lines (96 loc) · 3.09 KB
/
splash.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<html>
<head>
<meta
http-equiv="Cache-Control"
content="no-cache, no-store, must-revalidate"
/>
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="images/splash.jpg" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="splash.css" />
<title>LisboaJS</title>
<!--
Content:
Nodogsplash (NDS), by default, serves this splash page (splash.html)
when a client device Captive Portal Detection (CPD) process
attempts to send a port 80 request to the Internet.
You may either embed css in this file or use a separate .css file
in the same directory as this file, as demonstrated here.
It should be noted when designing a custom splash page
that for security reasons many CPD implementations:
Immediately close the browser when the client has authenticated.
Prohibit the use of href links.
Prohibit downloading of external files
(including .css and .js).
Prohibit the execution of javascript.
Authentication:
A client is authenticated on submitting an HTTP form, method=get,
passing $authaction, $tok and $redir.
It is also possible to authenticate using an href link to
$authtarget but be aware that many device Captive Portal Detection
processes prohibit href links, so this method may not work with
all client devices.
Available variables:
error_msg: $error_msg
gatewayname: $gatewayname
tok: $tok
redir: $redir
authaction: $authaction
denyaction: $denyaction
authtarget: $authtarget
clientip: $clientip
clientmac: $clientmac
clientupload: $clientupload
clientdownload: $clientdownload
gatewaymac: $gatewaymac
nclients: $nclients
maxclients: $maxclients
uptime: $uptime
Additional variables for binauth that can be passed back via the HTTP GET,
or appended to the query string of the authtarget link:
username
password
-->
</head>
<body>
<div class="offset">
<med-blue>LisboaJS</med-blue>
<div class="insert">
<br />
<img
src="images/splash.jpg"
alt="Splash Page: For access to the Internet, please click Continue."
/>
<hr />
<big-red>Welcome!</big-red>
<hr />
<br />
<italic-black
>For access to the Internet, please tap or click
Continue.</italic-black
>
<br /><br />
<hr />
<form method="GET" action="$authaction">
<input type="hidden" name="tok" value="$tok" />
<input type="hidden" name="redir" value="$redir" />
<!-- for binauth script
<label>Name:</label>
<input type="text" name="username"><br><br>
<label>Password:</label>
<input type="text" name="password"><br><br>
-->
<input type="submit" value="Continue" />
</form>
<hr />
<copy-right
>Copyright © The Nodogsplash Contributors 2004-2023.<br />This
software is released under the GNU GPL license.</copy-right
>
</div>
</div>
</body>
</html>