69 lines
2.7 KiB
Text
69 lines
2.7 KiB
Text
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>block an ip - <%- config["meta"]["name"] %></title>
|
|
<%- include("../../partial/html-head")%>
|
|
</head>
|
|
<body>
|
|
<%- include("../../partial/header") %>
|
|
<div class="modal">
|
|
<% if (typeof message == "string") { %>
|
|
<div class="suc">
|
|
<p><%= message %></p>
|
|
</div>
|
|
<% } %>
|
|
<% if (typeof err == "string") { %>
|
|
<div class="err">
|
|
<p><%= err %></p>
|
|
</div>
|
|
<% } %>
|
|
<h2 class="nm">Block an IP</h2>
|
|
<p class="nm">This is the menu to block an IP from the site. Please make sure your information is complete and makes sense.</p><br>
|
|
<form method="POST">
|
|
<div class="field">
|
|
<label for="ip">IP Address</label>
|
|
<% if (typeof ip == "string") { %>
|
|
<input name="ip" placeholder="192.168.1.1" required value="<%= ip %>">
|
|
<% } else { %>
|
|
<input name="ip" placeholder="192.168.1.1" required>
|
|
<% } %>
|
|
</div>
|
|
<div class="field">
|
|
<label for="reason">Reason</label>
|
|
<% if (typeof reason == "string") { %>
|
|
<input name="ip" placeholder="Login spam" required value="<%= reason %>">
|
|
<% } else { %>
|
|
<input name="ip" placeholder="Login spam" required>
|
|
<% } %>
|
|
</div>
|
|
<div class="field">
|
|
<p class="nm">Block from: </p>
|
|
<input type="checkbox" name="site" oninput="changed(this.checked)" autocomplete="off">
|
|
<label for="site">Entire Website</label><br>
|
|
<div id="otherOptions">
|
|
<input type="checkbox" name="login" autocomplete="off">
|
|
<label for="login">Login Page</label><br>
|
|
|
|
<input type="checkbox" name="register" autocomplete="off">
|
|
<label for="register">Register</label><br>
|
|
|
|
<input type="checkbox" name="filePages" autocomplete="off">
|
|
<label for="filePages">File Pages</label><br>
|
|
|
|
<input type="checkbox" name="upload" autocomplete="off">
|
|
<label for="upload">Upload/Paste</label><br>
|
|
|
|
<input type="checkbox" name="report" autocomplete="off">
|
|
<label for="report">Report</label><br>
|
|
|
|
<p class="nm">Custom: <i>Enter each path (starting with a slash) you want the IP to be blocked from. Each new line is a different path.</i></p>
|
|
<textarea name="custom" placeholder="Enter here..." style="width:100%;min-height:fit-content;"></textarea>
|
|
</div>
|
|
</div>
|
|
<input type="submit" value="Add IP">
|
|
</form>
|
|
</div>
|
|
<%- include("../../partial/footer") %>
|
|
<script src="/js/blocking.js"></script>
|
|
</body>
|
|
</html> |