當前位置: 首頁>>代碼示例>>PHP>>正文


PHP AIOWPSecurity_Utility::check_locked_ip方法代碼示例

本文整理匯總了PHP中AIOWPSecurity_Utility::check_locked_ip方法的典型用法代碼示例。如果您正苦於以下問題:PHP AIOWPSecurity_Utility::check_locked_ip方法的具體用法?PHP AIOWPSecurity_Utility::check_locked_ip怎麽用?PHP AIOWPSecurity_Utility::check_locked_ip使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在AIOWPSecurity_Utility的用法示例。


在下文中一共展示了AIOWPSecurity_Utility::check_locked_ip方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: column_status

 function column_status($item)
 {
     $ip = $item['ip_or_host'];
     //Check if this IP address is locked
     $is_locked = AIOWPSecurity_Utility::check_locked_ip($ip);
     if ($is_locked) {
         return 'temporarily blocked';
     } else {
         return '';
     }
 }
開發者ID:CarterNelms,項目名稱:www.engineeredcomfort.net,代碼行數:11,代碼來源:wp-security-list-404.php

示例2: column_status

 function column_status($item)
 {
     global $aio_wp_security;
     $ip = $item['ip_or_host'];
     //Check if this IP address is locked
     $is_locked = AIOWPSecurity_Utility::check_locked_ip($ip);
     $blacklisted_string = $aio_wp_security->configs->get_value('aiowps_banned_ip_addresses');
     $banned = strpos($blacklisted_string, $ip);
     if ($banned !== false) {
         return 'blacklisted';
     } else {
         if ($is_locked) {
             return 'temporarily blocked';
         } else {
             return '';
         }
     }
 }
開發者ID:Rudchyk,項目名稱:wp-framework,代碼行數:18,代碼來源:wp-security-list-404.php

示例3: do_404_lockout_tasks

 function do_404_lockout_tasks()
 {
     global $aio_wp_security;
     $redirect_url = $aio_wp_security->configs->get_value('aiowps_404_lock_redirect_url');
     //This is the redirect URL for blocked users
     $visitor_ip = AIOWPSecurity_Utility_IP::get_user_ip_address();
     $is_locked = AIOWPSecurity_Utility::check_locked_ip($visitor_ip);
     if ($is_locked) {
         //redirect blocked user to configured URL
         AIOWPSecurity_Utility::redirect_to_url($redirect_url);
     } else {
         //allow through
     }
 }
開發者ID:CarterNelms,項目名稱:www.engineeredcomfort.net,代碼行數:14,代碼來源:wp-security-general-init-tasks.php


注:本文中的AIOWPSecurity_Utility::check_locked_ip方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。