403Webshell
Server IP : 62.60.133.156  /  Your IP : 216.73.217.51
Web Server : LiteSpeed
System : Linux linux24.centraldnserver.com 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
User : mimradmin ( 1166)
PHP Version : 7.4.33
Disable Function : show_source, system, shell_exec, passthru, exec, popen, proc_open
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : OFF |  Pkexec : OFF
Directory :  /opt/imunify360/venv/lib64/python3.11/site-packages/im360/internals/core/rules/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /opt/imunify360/venv/lib64/python3.11/site-packages/im360/internals/core/rules/splashscreen.py
"""Splashscreen specific rules customization."""
from typing import AbstractSet, Iterator, Mapping

from defence360agent.utils.validate import IPVersion

from .types_ import FirewallRule, WebshieldRuleBuilder


class SplashscreenRuleBuilder(WebshieldRuleBuilder):
    """Implement steps specific to generating splashscreen related
    iptables rules.

    """

    def open_webshield_ports_for_localhost_rules(
        self,
        ip_version: IPVersion,
    ) -> Iterator[FirewallRule]:
        """Already added in .captcha"""
        yield from ()

    def block_webshield_ports_rules(
        self, redirect_map: Mapping[int, int], dest_ports: AbstractSet
    ) -> Iterator[FirewallRule]:
        """Already added in .captcha"""
        yield from ()

    def redirect_panel_ports(
        self, ip_version: IPVersion
    ) -> Iterator[FirewallRule]:
        yield from ()

    def logdrop_chain_rules(self, ipset_name: str) -> Iterator[FirewallRule]:
        """Empty generator, we don't want to block for splashscreen"""
        yield from ()

    def drop_tproxy_rules(self, ipset_name: str) -> Iterator[FirewallRule]:
        """Empty generator, we don't want to block for splashscreen"""
        yield from ()

Youez - 2016 - github.com/yon3zu