123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>Access Control</title>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0 user-scalable=no">
- <link rel="stylesheet" href="../../script/semantic/semantic.min.css">
- <script type="text/javascript" src="../../script/jquery.min.js"></script>
- <script type="text/javascript" src="../../script/semantic/semantic.min.js"></script>
- <style>
- a.pageFocus {
- background: #222222;
- color: white !important;
- border-radius: 50%;
- -moz-border-radius: 50%;
- -webkit-border-radius: 50%;
- display: inline-block;
- font-weight: bold;
- line-height: 30px;
- margin-right: 2px;
- text-align: center;
- width: 30px;
- }
- .noselect {
- -webkit-touch-callout: none; /* iOS Safari */
- -webkit-user-select: none; /* Safari */
- -khtml-user-select: none; /* Konqueror HTML */
- -moz-user-select: none; /* Old versions of Firefox */
- -ms-user-select: none; /* Internet Explorer/Edge */
- user-select: none; /* Non-prefixed version, currently
- supported by Chrome, Edge, Opera and Firefox */
- }
- </style>
- </head>
- <body>
- <br>
- <div class="ui container" style="height: 100% !important;">
- <div>
- <h3 class="ui header">
- Access Control
- <div class="sub header">Manage IPs from accessing this host</div>
- </h3>
- <div class="ui divider"></div>
- <h3><i class="ui green checkmark icon"></i> Whitelist</h3>
- <div class="ui divider"></div>
- <h3><i class="ui red remove icon"></i> Blacklist</h3>
- <div class="ui black segment">
- <h4>Usage</h4>
- <p>Block certain IP or IP range from logging into the system. Syntax Examples:</p>
- <div class="ui bulleted list">
- <div class="item">192.168.1.100</div>
- <div class="item">123.36.53.100</div>
- <div class="item">192.168.0.100 - 192.168.0.250</div>
- </div>
- </div>
- <div class="ui toggle checkbox">
- <input type="checkbox" name="enableBlacklist">
- <label>Enable Blacklist Filtering</label>
- </div>
- <table class="ui celled table">
- <thead>
- <tr><th>IP Range</th>
- <th>Edit</th>
- <th>Remove</th>
- </tr></thead>
- <tbody id="blacklisttable">
- <tr>
- <td data-label="Name">James</td>
- <td data-label="Age">24</td>
- <td data-label="Job">Engineer</td>
- </tr>
- </tbody>
- </table>
- <div class="ui divider"></div>
- <h3>Regional Block</h3>
- </div>
-
- <script>
- //Init
- initBlacklist();
- //Blacklist load
- function initBlacklist(){
- $.get("../../system/auth/blacklist/list", function(data){
- data.forEach(entry => {
- })
- if (data.length == 0){
- $("#blacklisttable").html(`<tr>
- <td colspan="3"><i class="remove icon"></i> No Banned IPs</td>
- </tr>`);
- }
- })
- }
- </script>
- </body>
- </html>
|