July 02, 2004

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


Liang

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
####################################

Posted at July 2, 2004 06:56 PM by Liang at 06:56 PM | Comments (0) | TrackBack(1) | Booso!| Niu.la收藏!


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 六翼的天使.

Comments

Post a comment

请注意,为了防止spam,您的留言必需含有中文字符!









Remember personal info?




所有发表