Forum Moderators: phranque
I'm seeing a ton of 404 errors that are referred from GoogleAh, good ol’ google_ref botnet. (My name for it.) Not as common as it once was, but it’s simply a humanoid robot--i.e. nothing obviously blockable in headers or IP--that claims google.com as referer instead of the more usual referer-less request. Rarely I even see idiocies like /wp-admin claiming google as referer, which is a no-brainer all around :)
if (
$_SERVER['HTTP_REFERER'] &&
$_SERVER['HTTP_REFERER'] === 'https://www.google.com/'
) {
$handle = fopen('/home/example/www/404.dat', "a+");
fwrite($handle, $_SERVER['REQUEST_URI'] . "\n");
fclose($handle);
} RewriteCond %{HTTP_REFERER} service.dropdowndeals.com [NC,OR]
RewriteCond %{QUERY_STRING} (?:(?:information|table)_schema|my_db_name|union+all+select) [NC,OR]
# I already had most of this, so I just added the list of requests
RewriteCond %{REQUEST_URI} ^/(?:crossdomain|wp-|administrator|phpmyadmin|p2|impl\.|2012|Burn|Environmental|Firefighter|Graduation|Liquor|Man|Murder|Preschool|Saving|Some|Voter)|/(?:a|b|shell|tiki-register|who|wp-login|xmlrpc)\.php|\.sql|license\.txt$ [NC]
RewriteRule ^ - [F]