.htaccess 安全性
For some bloggers and web developers, Digg can be a huge boost in traffic and thus a huge bust in ad revenue. Unfortunately, the Digg Effect can kill a website's bandwidth and get the website shut down. Wouldn't it be great if a weary web developer could prevent his site from being shut down by blocking users referred by Digg, at least a while? Using a small bit of .htaccess code and mod_rewrite, the developer can do just that.
对于某些博客作者和Web开发人员而言,Digg可以极大地增加访问量,从而大幅减少广告收入。 不幸的是,Digg效应会杀死网站的带宽并导致网站关闭。 如果疲倦的网络开发人员至少在一段时间内阻止Digg推荐的用户来阻止其网站关闭,那不是很好吗? 使用少量的.htaccess代码和mod_rewrite,开发人员就可以做到这一点。
代码 (The Code)
RewriteEngine on
RewriteCond %{HTTP_REFERER} digg.com [NC]
RewriteRule .* - [F]
Say good-bye to Digg Death with this small, easy-to-place snippet of code!
用这个小巧,易于放置的代码片段告别Digg Death!
.htaccess 安全性