Block Reffered Traffic using htaccess

by Rekha 2010-02-17 14:04:38

Block Reffered Traffic using htaccess

This is a command that someday come useful for any webmaster as we know social bookmarking websites are penetrating in any field of web, if you ever encountered or listened about dig effect when more than enough (enough that you cant imagine) traffic is derived to your page from dig, this is when your page got enough digs to show up on digg’s front page then hell lota traffic will be there at your step shared servers normally cant handle that much amount of traffic it can cause huge server load which any webhosting wont be willing for shared server so they suspend or temporarily disable the website having massive load. The following command is to block traffic from referring site you mention like

# Block reffered traffic
RewriteEngine on
RewriteCond %{HTTP_REFERER} digg\.com [NC]
RewriteRule .* – [F]

Tagged in:


You must LOGIN to add comments