Canada
|
Edited by yazoo at 2013-2-16 10:51
After installing a new runup of Discuz, I started getting a lot of spam registrations. My research found me a solution that has eliminated the problem.
There is a free service called stopforumspam.com that has over 43 million spam sources identified. The service is run by volunteers.
A php script is available that looks for suspicious behaviour and also looks up the ip at stopforumspam.com. It is available at http://www.spambotsecurity.com/zbblock.php
It is also free.
To install, expand the zbblock zip file in your www root. It will create its own subdirectory. Open setup.php in your web browser. The script analyzes your environment and offers 7 options. For me on a LAMP environment, the seventh choice was optimal. After choosing it, I was given a php tag to put at the beginning of any php file I wanted to protect on the server.
I put the tag at the very beginning of my member.php and watched as my bandwidth dropped and my fake registrations dropped to zero. I put it in front of some other php files as well, but haven't noticed them in the logs so they are probably not necessary.
You can configure logging in the ini file, here is an excerpt of what the killed_log looks like if you enable it. If you do enable it, check in and truncate it every so often as it will grow quite big.- <font face="Arial" size="1">#: 16 @: Tue, 12 Feb 2013 15:31:37 -0800 Running: 0.4.10a1
- Host: 137.7.207.91.unknown.steephost.net
- IP: 91.207.7.137
- Score: 1
- Violation count: 1
- Why blocked: No registrations, or logins, from hosts listed as hostile on http://www.stopforumspam.com/ (local).
- Query: mod=register
- Referer: http://strayingdogs.com/dx/member.php?mod=register
- User Agent: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.91 Safari/537.11
- Reconstructed URL: http:// strayingdogs.com /dx/member.php?mod=register
- #: 17 @: Tue, 12 Feb 2013 15:31:43 -0800 Running: 0.4.10a1
- Host: 137.7.207.91.unknown.steephost.net
- IP: 91.207.7.137
- Score: 1
- Violation count: 2
- Why blocked: No registrations, or logins, from hosts listed as hostile on http://www.stopforumspam.com/ (local).
- Query: mod=register
- Referer: http://strayingdogs.com/dx/member.php?mod=register
- User Agent: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.91 Safari/537.11
- Reconstructed URL: http:// strayingdogs.com /dx/member.php?mod=register
- #: 18 @: Tue, 12 Feb 2013 15:31:49 -0800 Running: 0.4.10a1
- Host: 137.7.207.91.unknown.steephost.net
- IP: 91.207.7.137
- Score: 1
- Violation count: 3 BANNED
- Why blocked: No registrations, or logins, from hosts listed as hostile on http://www.stopforumspam.com/ (local).
- Query: mod=register
- Referer: http://strayingdogs.com/dx/member.php?mod=register
- User Agent: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.91 Safari/537.11
- Reconstructed URL: http:// strayingdogs.com /dx/member.php?mod=register
- #: 19 @: Tue, 12 Feb 2013 16:23:48 -0800 Running: 0.4.10a1
- Host: spider-199-21-99-82.yandex.com
- IP: 199.21.99.82
- Score: 2
- Violation count: 1 INSTA-BANNED
- Why blocked: Yandex is banned. INSTA-BAN (SPD-110). Yandex is banned. INSTA-BAN (HN-0110). You have been instantly banned due to extremely hazardous behavior!
- Query: mod=redirect&tid=19&goto=lastpost
- Referer:
- User Agent: Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)
- Reconstructed URL: http:// strayingdogs.com /dx/forum.php?mod=redirect&tid=19&goto=lastpost
- </font>
Copy the Code |
Rate
-
View Rating Log
|