View difference between Paste ID: ymv5v9WE and YpBe1HAM
SHOW: | | - or go back to the newest paste.
1
if (mb_stripos($_SERVER['HTTP_USER_AGENT'], 'yandex.com', 0, 'utf-8') !== false) {
2
$load = sys_getloadavg();
3
if ($load[0] > 2) {
4
header('HTTP/1.1 503 Service Temporarily Unavailable');
5
header('Status: 503 Service Temporarily Unavailable');
6
header('Retry-After: 3600');
7
die();
8
}
9
}