July 02, 2004
Ban IP/Spam in refer via .htaccess or httpd.conf::[Blog]

There are so many fake referral from Spam website which is try to catch my eyeballs.
There are two easy way to ban them:
1]
In httpd.conf
####################################
SetEnvIfNoCase Referer ".*(casino|gambling|poker|porn|sex|hqsearch|webcamss|rape).*" BadReferrer
order allow,deny
allow from all
deny from env=BadReferrer
####################################
2] Using .htaccess to ban Refer and also Ban IP
####################################
SetEnvIfNoCase Referer ".*(casino|gambling|poker|porn|sex|hqsearch|webcamss|rape).*" BadReferrer
order deny,allow
deny from env=BadReferrer
deny from 63.81.44.2
deny from 69.50.191.130
####################################
Trackback
You can ping this entry by using http://www.wespoke.com/cgi-bin/mt/mt-tb.cgi/528
关于如何在Movable Type上禁止Spam(垃圾留言),以前有朋友问起这些问题,写一个比较完整的版本在这里:...
Trackbacked from http://blog.wespoke.com/archives/000703.php with Mt 系统如何防止垃圾留言 on 六翼的天使.
