Blocking unwanted referrers

2007 Apr 19

Looks like my post to avoid linking to hot images is not working, now i'm getting 85% bandwidth usage on my website. When i try to view the logs got numerous referrers from profiles.myspace.com. Alright, i have decided to block all traffic from myspace, will do it using .htaccess.

RewriteCond %{HTTP_USER_AGENT} QihooBot [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?profile.myspace.com.*$ [NC]
RewriteRule ^.* - [F]

Now, there is a bot that i have found so i added it anyway. :D If you wish to block some more add an or on the [NC] directive like this [NC,OR].

Tweet this post

2 Comments


Is it applicable to the blogs with a free hosted domain, like what I am using right now? If so, where do I put the codes (exact location) ?

Thanks,
Mitch

sorry its not applicable to your current blog host.

Leave a comment


Recent Entries

Close