forked from brandonwamboldt/varnish-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 1
/
bans.html
161 lines (137 loc) · 6.97 KB
/
bans.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Bans :: Varnish Dashboard</title>
<link rel="shortcut icon" href="./assets/images/favicon.ico">
<link rel="stylesheet" href="./vendor/bootstrap-3.3.2-dist/css/bootstrap.min.css">
<link rel="stylesheet" href="./assets/css/main.css">
</head>
<body data-page="bans">
<header class="navbar navbar-fixed-top navbar-inverse" id="top">
<div class="container">
<div class="navbar-header">
<button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="./" class="navbar-brand"><img src="assets/images/logo.png" alt="Enhanced Varnish Dashboard"></a>
</div>
<nav class="collapse navbar-collapse bs-navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="./">Dashboard</a></li>
<li class="active"><a href="./bans.html">Bans</a></li>
<li><a href="./manage.html">Manage Server</a></li>
<li><a href="./vcl.html">VCL</a></li>
<li><a href="./stats.html">Stats</a></li>
<li><a href="./params.html">Params</a></li>
<li><a href="./logs.html">Logs</a></li>
</ul>
<form class="navbar-form navbar-right" id="server-navigation" style="display:none">
<div class="dropdown clearfix">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-expanded="true">
All Servers
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
<li role="presentation" class="dropdown-header">Server Groups</li>
<li role="presentation" id="sg-all-servers"><a role="menuitem" class="switch-server" data-server="" href="./">All Servers</a></li>
<li role="presentation" id="sg-servers" class="dropdown-header">Servers</li>
</ul>
</div>
</form>
</nav>
</div>
</header>
<div class="container page-body" id="bans-body">
<div class="row">
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading">Bans</div>
<div class="panel-body">
<p>
Banning a URL will purge it from the cache. This input takes
a regular expression and will ban any items matching the
expression. <code>/</code> will match all URLs. <code>^/blog</code>
will match any URL starting with /blog.
</p>
<strong>ban req.url ~ [input]:</strong>
<form class="form-inline" style="margin-top:16px;margin-bottom:10px;" id="server-ban">
<input type="text" class="form-control" placeholder="e.g. /" style="width:240px;">
<button type="submit" class="btn btn-primary">Ban</button>
</form>
<strong>ban [input]:</strong>
<form class="form-inline" style="margin-top:16px;" id="server-ban2">
<input type="text" class="form-control" placeholder="e.g. req.url ~ /" style="width:240px;">
<button type="submit" class="btn btn-primary">Ban</button>
</form>
</div>
</div>
</div>
<div class="col-md-8">
<div class="panel panel-default">
<div class="panel-heading">Current Bans</div>
<div class="panel-body">
<table id="server-bans" class="table table-bordered table-hover">
<thead>
<tr>
<th style="width:160px;">Timestamp</th>
<th style="width:120px;">References</th>
<th style="width:80px;">State</th>
<th>Ban</th>
</tr>
</thead>
<tbody style="font-family:monospace">
<tr><td colspan="3">Nothing in the ban list</td></tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<footer class="site-footer" role="contentinfo">
<div class="container">
<p>Enhanced Varnish Dashboard by <a href="https://github.com/brandonwamboldt" target="_blank">@brandonwamboldt</a>.</p>
<p>
The Enhanced Varnish Dashboard is licensed under the <a href="https://github.com/brandonwamboldt/varnish-dashboard/blob/master/LICENSE.md" target="_blank">MIT</a> license, our documentation under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.
</p>
<ul class="site-footer-links text-muted">
<li>Currently v1.0.0</li>
<li>·</li>
<li><a href="https://github.com/brandonwamboldt/varnish-dashboard">GitHub</a></li>
<li>·</li>
<li><a href="http://brandonwamboldt.github.io/varnish-dashboard/">Documentation</a></li>
<li>·</li>
<li><a href="https://github.com/brandonwamboldt/varnish-dashboard/issues">Issues</a></li>
<li>·</li>
<li><a href="https://github.com/brandonwamboldt/varnish-dashboard/releases">Releases</a></li>
</ul>
</div>
</footer>
<div class="modal fade" id="cmd-output" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Direct Varnish Admin Command Output</h4>
</div>
<div class="modal-body">
<pre></pre>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script src="./config.js"></script>
<script src="./vendor/jquery-1.11.2.min.js"></script>
<script src="./vendor/bootstrap-3.3.2-dist/js/bootstrap.min.js"></script>
<script src="./assets/js/varnish.js"></script>
<script src="./assets/js/main.js"></script>
<script src="./assets/js/bans.js"></script>
</body>
</html>