1: <?php
2:
3: /**
4: * Class protector_precommon_badip_errorlog
5: */
6: class Protector_precommon_badip_errorlog extends ProtectorFilterAbstract
7: {
8: public function execute()
9: {
10: echo _MD_PROTECTOR_YOUAREBADIP;
11: $protector = Protector::getInstance();
12: if ($protector->ip_matched_info) {
13: printf(_MD_PROTECTOR_FMT_JAILINFO, date(_MD_PROTECTOR_FMT_JAILTIME, $protector->ip_matched_info));
14: }
15: error_log('Protector: badip ' . @$_SERVER['REMOTE_ADDR'], 0);
16: exit;
17: }
18: }
19: