( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ HEX
HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux mail.thebrand.ai 6.8.0-107-generic #107-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 13 19:51:50 UTC 2026 x86_64
User: www-data (33)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/html/tmpr/..//tmpr/..//tmpr/../tmpr/../security/modules/headers-check.php
<?php
//Anonymous Bots Protection
if ($settings['badbot_protection3'] == 1) {
    
    //Detect Missing User-Agent Header
    if (empty($useragent)) {
        
        $type = "Missing User-Agent header";
        
        //Logging
        if ($settings['badbot_logging'] == 1) {
            psec_logging($mysqli, $type);
        }
        
        //AutoBan
        if ($settings['badbot_autoban'] == 1) {
            psec_autoban($mysqli, $type);
        }
        
        //E-Mail Notification
        if ($settings['mail_notifications'] == 1 && $settings['badbot_mail'] == 1) {
            psec_mail($mysqli, $type);
        }
        
        echo '<meta http-equiv="refresh" content="0;url=' . $settings['projectsecurity_path'] . '/pages/missing-useragent.php" />';
        exit;
    }
    
    if (!filter_var($ip, FILTER_VALIDATE_IP)) {
        
        $type = "Invalid IP Address header";
        
        //Logging
        if ($settings['badbot_logging'] == 1) {
            psec_logging($mysqli, $type);
        }
        
        //AutoBan
        if ($settings['badbot_autoban'] == 1) {
            psec_autoban($mysqli, $type);
        }
        
        //E-Mail Notification
        if ($settings['mail_notifications'] == 1 && $settings['badbot_mail'] == 1) {
            psec_mail($mysqli, $type);
        }
        
        echo '<meta http-equiv="refresh" content="0;url=' . $settings['projectsecurity_path'] . '/pages/invalid-ip.php" />';
        exit;
        
    }
}
?>