How to deny empty user agents using Apache

We can safely assume that empty user agents are evil and need to be blocked. They consume your server's resource and bandwidth, sometimes even crash your sites.

To deny empty user agents in Apache,  add the following in your .htaccess file.
SetEnvIfNoCase User-Agent ^$ keep_out
Deny from env=keep_out

Featured Post

Updated Coupons / promo codes for Google Apps for Work / Business

To redeem: 1. Sign up for Google Apps   2. Go to your billing settings  3. Choose your payment plan  4. Enter your promo code ...