References:
From man page: man apt_preferences
<?php | |
function read_cb($ch, $fp, $length) { | |
return fread($fp, $length); | |
} | |
$fp = fopen('php://memory', 'r+'); | |
$string = "From: <[email protected]>\r\n"; | |
$string .= "To: <[email protected]>\r\n"; | |
$string .= "Date: " . date('r') . "\r\n"; | |
$string .= "Subject: Test\r\n"; |
# Start Bad Bot Prevention | |
<IfModule mod_setenvif.c> | |
# SetEnvIfNoCase User-Agent ^$ bad_bot | |
SetEnvIfNoCase User-Agent "^12soso.*" bad_bot | |
SetEnvIfNoCase User-Agent "^192.comAgent.*" bad_bot | |
SetEnvIfNoCase User-Agent "^1Noonbot.*" bad_bot | |
SetEnvIfNoCase User-Agent "^1on1searchBot.*" bad_bot | |
SetEnvIfNoCase User-Agent "^3D_SEARCH.*" bad_bot | |
SetEnvIfNoCase User-Agent "^3DE_SEARCH2.*" bad_bot | |
SetEnvIfNoCase User-Agent "^3GSE.*" bad_bot |
References:
From man page: man apt_preferences