| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 23557|Reply: 3
Collapse the left

Reducing SPAM registrations - ZBBLOCK

  [Copy link]

 Canada

Post time: 2013-02-13 09:14
| Show all posts |Read mode
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.
  1. <font face="Arial" size="1">#: 16 @: Tue, 12 Feb 2013 15:31:37 -0800 Running: 0.4.10a1
  2. Host: 137.7.207.91.unknown.steephost.net
  3. IP: 91.207.7.137
  4. Score: 1
  5. Violation count: 1
  6. Why blocked: No registrations, or logins, from hosts listed as hostile on http://www.stopforumspam.com/ (local).
  7. Query: mod=register
  8. Referer: http://strayingdogs.com/dx/member.php?mod=register
  9. User Agent: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.91 Safari/537.11
  10. Reconstructed URL: http:// strayingdogs.com /dx/member.php?mod=register

  11. #: 17 @: Tue, 12 Feb 2013 15:31:43 -0800 Running: 0.4.10a1
  12. Host: 137.7.207.91.unknown.steephost.net
  13. IP: 91.207.7.137
  14. Score: 1
  15. Violation count: 2
  16. Why blocked: No registrations, or logins, from hosts listed as hostile on http://www.stopforumspam.com/ (local).
  17. Query: mod=register
  18. Referer: http://strayingdogs.com/dx/member.php?mod=register
  19. User Agent: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.91 Safari/537.11
  20. Reconstructed URL: http:// strayingdogs.com /dx/member.php?mod=register

  21. #: 18 @: Tue, 12 Feb 2013 15:31:49 -0800 Running: 0.4.10a1
  22. Host: 137.7.207.91.unknown.steephost.net
  23. IP: 91.207.7.137
  24. Score: 1
  25. Violation count: 3 BANNED
  26. Why blocked: No registrations, or logins, from hosts listed as hostile on http://www.stopforumspam.com/ (local).
  27. Query: mod=register
  28. Referer: http://strayingdogs.com/dx/member.php?mod=register
  29. User Agent: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.91 Safari/537.11
  30. Reconstructed URL: http:// strayingdogs.com /dx/member.php?mod=register

  31. #: 19 @: Tue, 12 Feb 2013 16:23:48 -0800 Running: 0.4.10a1
  32. Host: spider-199-21-99-82.yandex.com
  33. IP: 199.21.99.82
  34. Score: 2
  35. Violation count: 1 INSTA-BANNED
  36. 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!
  37. Query: mod=redirect&tid=19&goto=lastpost
  38. Referer:
  39. User Agent: Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)
  40. Reconstructed URL: http:// strayingdogs.com /dx/forum.php?mod=redirect&tid=19&goto=lastpost
  41. </font>
Copy the Code

Rate

Number of participants 1Rating +1 Collapse Reason
ravipratap95 + 1 Very nice!

View Rating Log

 Russia

Post time: 2013-02-13 11:42
| Show all posts
To install, expand the zbblock exe 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 members.php

Please verify and edit this text!
1) what means "expand the zbblock exe file"
2) what the subfolders will be created
3) what the 7 options
4) members.php does NOT exist

 Canada

 Author| Post time: 2013-02-16 09:43
| Show all posts
Edited by yazoo at 2013-2-19 10:38

Hi Vot.  Sorry I was a little sloppy in my description.  To answer your questions:

1.  I should have said expand zbblock.zip. from your web root.
2.  It will create just one subfolder zbblock
3. I'm not sure what all the 7 options are.  They are explained in the manual, and are for systems with different configurations.  I think option 3 works for Windows and 7 works for Linux.  I've uploaded a copy of the manual.
4. Sorry not members.php but member.php.  Here's what mine looked like after I edited it:
  1. <?php require('/home/straying/public_html/zbblock_0_4_10a1/zbblock.php'); ?><?php

  2. /**
  3. *      [Discuz!] (C)2001-2099 Comsenz Inc.
  4. *      This is NOT a freeware, use is subject to license terms
  5. *
  6. *      $Id: member.php 20112 2011-02-15 07:10:53Z monkey $
  7. */
Copy the Code
The first php require phrase is the text that I added.


Edit 02/18/2013.  Noted some more spam hits, so added the php header to forum.php as well.  That eliminated another source...
  1. #: 108 @: Mon, 18 Feb 2013 06:03:42 -0800 Running: 0.4.10a1
  2. Host: 91.236.74.103
  3. IP: 91.236.74.103
  4. Score: 1
  5. Violation count: 1
  6. Why blocked: Suspected spamtool mail.ru agent (UA-0135).
  7. Query:
  8. Referer: http://strayingdogs.com/forum.php
  9. User Agent: Opera/9.80 (Windows NT 5.1; U; MRA 5.10 (build 5310); ru) Presto/2.10.289 Version/12.00
  10. Reconstructed URL: http:// strayingdogs.com /dx/forum.php
Copy the Code

This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

 Russia

Post time: 2013-02-16 14:58
| Show all posts
To answer your questions:

Why NEW post???
Just EDIT the first post!
People want to see an instruction in a single post.

Rate

Number of participants 1Rating +1 Collapse Reason
yazoo + 1 I did edit the first post.

View Rating Log

You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-05-03 22:08 GMT+3 , Processed in 0.046571 sec., 9 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list