QUAN HỆ CỔ ĐÔNG
Liên hệ đầu tư
Chúng tôi luôn sẵn sàng hỗ trợ và trả lời mọi câu hỏi liên quan đến vấn đề quan hệ cổ đông của Công ty Cổ phần Nước Khoáng Vĩnh Hảo.
Điện thoại: 08.62563862 Ext: 5201
njaFirewall Custom Rules * * This file secures the website by: * 1. Blocking all direct access to the web server. * 2. Whitelisting a specific IP for /wp-admin/ access. * 3. Correctly handling the real client IP from Cloudflare. * * @package ninjafirewall-custom-rules * @author codetot * @since 0.0.1 **/ // Prevent direct access by hosting ip // $cf_access_key = 'vinhhao-com-vn-NzXvooTfzVWvkPk1I60Ml4o3S4uizd'; // if (!isset($_SERVER['HTTP_X_AUTH_PROXY_FROM_CLOUDFLARE']) // || $_SERVER['HTTP_X_AUTH_PROXY_FROM_CLOUDFLARE'] !== $cf_access_key) { // header('HTTP/1.1 403 Forbidden'); // exit('Direct access not allowed'); // } $whitelisted_ip = '52.220.56.58'; $user_ip = $_SERVER["REMOTE_ADDR"]; $requested_path = $_SERVER['REQUEST_URI']; $admin_paths = ['quantri', '/wp-admin/', '/wp-login.php']; $is_admin_path = false; foreach ($admin_paths as $path) { if (strpos($requested_path, $path) === 0) { $is_admin_path = true; break; } } if ($is_admin_path) { if ($user_ip === $whitelisted_ip) { return 'ALLOW'; } else { return 'BLOCK'; } } if ( !empty($_POST['_wpnonce']) && strpos($_SERVER['SCRIPT_NAME'], '/wp-admin/post.php') !== FALSE ) { return 'ALLOW'; } if ( !empty($_POST['_wpnonce']) && strpos($_SERVER['SCRIPT_NAME'], '/wp-admin/admin-ajax.php') !== FALSE ) { return 'ALLOW'; } if ( !empty($_POST['_wpnonce']) && strpos($_SERVER['SCRIPT_NAME'], '/wp-admin/upload.php') !== FALSE ) { return 'ALLOW'; }
Gọi đặt nước ngay
1800-6068
Chúng tôi luôn sẵn sàng hỗ trợ và trả lời mọi câu hỏi liên quan đến vấn đề quan hệ cổ đông của Công ty Cổ phần Nước Khoáng Vĩnh Hảo.
Điện thoại: 08.62563862 Ext: 5201