Blocking Access Using Apache
I’ve recently got pissed off with people taking advantage of my server.
First I noticed that there’s a load of people using download managers (up to 13 concurrent HTTP sessions!) to download my CM7 builds. So I’ve blocked them using:
RewriteEngine On
RewriteCond %{HTTP:Range} !^$
RewriteRule ^.+$ - [F,L]
Then I noticed some website was direct-linking to my downloads without even asking me, or giving credit, so after getting him to remove the link, I blocked him using a further redirect:
RewriteCond %{HTTP_REFERER} example\.com [NC]
RewriteRule ^.+$ - [F,L]
I’ve also upgraded the blog to WordPress version 3.1.4