for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Class protector_precommon_badip_errorlog
*/
class Protector_precommon_badip_errorlog extends ProtectorFilterAbstract
{
public function execute()
echo _MD_PROTECTOR_YOUAREBADIP;
$protector = Protector::getInstance();
if ($protector->ip_matched_info) {
printf(_MD_PROTECTOR_FMT_JAILINFO, date(_MD_PROTECTOR_FMT_JAILTIME, $protector->ip_matched_info));
}
if (isset($_SERVER['REMOTE_ADDR'])) {
error_log('Protector: badip ' . $_SERVER['REMOTE_ADDR'], 0);
exit;
exit
In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.
In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.