|
Server : LiteSpeed System : Linux srv104790275 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64 User : dewac4139 ( 1077) PHP Version : 8.0.30 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /usr/local/CyberCP/firewall/templates/firewall/ |
Upload File : |
{% extends "baseTemplate/index.html" %}
{% load i18n %}
{% block title %}{% trans "ModSecurity Rules Packs - CyberPanel" %}{% endblock %}
{% block content %}
{% load static %}
{% get_current_language as LANGUAGE_CODE %}
<!-- Current language: {{ LANGUAGE_CODE }} -->
<div class="container">
<div id="page-title">
<h2>{% trans "ModSecurity Rules Packages!" %} - <a target="_blank" href="https://community.cyberpanel.net/t/4-mod-security-rules-packages/133" style="height: 23px;line-height: 21px;" class="btn btn-border btn-alt border-red btn-link font-red" title=""><span>{% trans "ModSec Docs" %}</span></a> </h2>
<p>{% trans "Install/Un-install ModSecurity rules packages." %}</p>
</div>
<div ng-controller="modSecRulesPack" class="example-box-wrapper">
<div class="panel panel-body">
<h3 class="content-box-header">
{% trans "ModSecurity Rules Packages!" %} <img ng-hide="modsecLoading" src="/static/images/loading.gif">
</h3>
{% if modSecInstalled == 0 %}
<div class="content-box-wrapper">
<div class="row">
<div class="col-md-12 text-center" style="margin-bottom: 2%;">
<h4 class="mb-10">{% trans "ModSecurity is not installed " %}
</h4>
<a href="{% url 'modSecurity' %}"><button class="btn btn-alt btn-hover btn-blue-alt">
<span>{% trans "Install Now." %}</span>
<i class="glyph-icon icon-arrow-right"></i>
</button></a>
</div>
</div>
</div>
<!----- ModeSec Install Log box ----------------->
{% else %}
<div class="content-box-wrapper">
<div class="row">
<table cellpadding="0" cellspacing="0" border="0" class="table text-center" id="datatable-example">
<thead>
<tr>
<th style="width: 33%" >Package</th>
<th style="width: 33%">Status</th>
<th style="width: 33%"></th>
</tr>
</thead>
<tbody>
<tr>
<td>OWASP ModSecurity Core Rules</td>
<td><input type="checkbox" id="owaspInstalled" data-toggle="toggle"></td>
<td>
<button ng-disabled="owaspDisable" ng-click="fetchRulesFile('owasp')" class="btn btn-alt btn-hover btn-blue-alt">
<span >{% trans "Configure" %}</span>
<i class="glyph-icon icon-arrow-right"></i>
</button>
</td>
</tr>
{# <tr>#}
{# <td>COMODO ModSecurity 3.0</td>#}
{# <td><input type="checkbox" id="comodoInstalled" data-toggle="toggle"></td>#}
{# <td>#}
{# <button ng-disabled="comodoDisable" ng-click="fetchRulesFile('comodo')" class="btn btn-alt btn-hover btn-blue-alt">#}
{# <span>{% trans "Configure" %}</span>#}
{# <i class="glyph-icon icon-arrow-right"></i>#}
{# </button>#}
{# </td>#}
{# </tr>#}
</tbody>
</table>
<div class="col-sm-3"></div>
<div class="col-sm-6">
<div ng-hide="installationQuote" class="alert alert-success">
<p>{% trans "Operation successful." %}</p>
</div>
<div ng-hide="couldNotConnect" class="alert alert-danger">
<p>{% trans "Could not connect. Please refresh this page." %} </p>
</div>
<div ng-hide="installationFailed" class="alert alert-danger">
<p>{% trans "Operation failed, Error message: " %} {$ errorMessage $}</p>
</div>
<div ng-hide="installationSuccess" class="alert alert-success">
<p>{% trans "Operation successful." %}</p>
</div>
</div>
<!------ List of rule files --------------->
<div ng-hide="ruleFiles" class="form-group">
<div class="col-sm-12">
<table class="table">
<thead>
<tr>
<th>{% trans "ID" %}</th>
<th>{% trans "Supplier" %}</th>
<th>{% trans "Filename" %}</th>
<th>{% trans "Status" %}</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="record in records track by $index">
<td ng-bind="record.id"></td>
<td ng-bind="record.packName"></td>
<td ng-bind="record.fileName"></td>
<td ><input ng-click="removeRuleFile(record.fileName,record.packName,record.status)" ng-checked="record.status" type="checkbox" ></td>
</tr>
</tbody>
</table>
</div>
</div>
<!------ List of rule files --------------->
</div>
</div>
{% endif %}
</div>
</div>
</div>
{% endblock %}