| @@ -20,9 +20,8 @@ | ||
| 20 | 20 | private $status; |
| 21 | 21 | private $rulesInfo; |
| 22 | 22 | private $reqInfo; |
| 23 | 23 | private $matchedRules; |
| 24 | - private $category; | |
| 25 | 24 | |
| 26 | 25 | #status |
| 27 | 26 | const ALLOWED = 1; |
| 28 | 27 | const BLOCKED = 2; |
| @@ -37,9 +36,8 @@ | ||
| 37 | 36 | const USER_BLACKLISTED = 50; |
| 38 | 37 | const RULE_BLOCKED = 60; |
| 39 | 38 | const RULE_ALLOWED = 70; |
| 40 | 39 | const PRIVATEIP = 80; |
| 41 | - const GLOBAL_BOT_BLOCKED = 90; | |
| 42 | 40 | |
| 43 | 41 | public function __construct($ip) { |
| 44 | 42 | $fileNames = array(); |
| 45 | 43 | $headers = array(); |
| @@ -110,21 +108,8 @@ | ||
| 110 | 108 | } |
| 111 | 109 | |
| 112 | 110 | public function setCategory($category) { |
| 113 | 111 | $this->category = $category; |
| 114 | - } | |
| 115 | - | |
| 116 | - public static function blacklistedCategories() { | |
| 117 | - return array( | |
| 118 | - BVWPRequest::BOT_BLOCKED, | |
| 119 | - BVWPRequest::COUNTRY_BLOCKED, | |
| 120 | - BVWPRequest::USER_BLACKLISTED, | |
| 121 | - BVWPRequest::GLOBAL_BOT_BLOCKED | |
| 122 | - ); | |
| 123 | - } | |
| 124 | - | |
| 125 | - public static function whitelistedCategories() { | |
| 126 | - return array(BVWPRequest::WHITELISTED); | |
| 127 | 112 | } |
| 128 | 113 | |
| 129 | 114 | public function setPostParams($postParams) { |
| 130 | 115 | $this->postParams = $postParams; |