[ABD] No more spambots

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
User avatar
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

[ABD] No more spambots

Post by jalaln » Tue Feb 19, 2008 10:08 am

MOD Title: No more spambots.
MOD Description: Blocks registrations from timezone UTC - 12 (Baker Island Time) that is used by almost all spambots.
MOD Version: RC 1.0.0

MOD Download:

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
includes/ucp/ucp_register.php

#
#-----[ FIND ]------------------------------------------
#

$data = array(
			'username'			=> utf8_normalize_nfc(request_var('username', '', true)),
			'new_password'		=> request_var('new_password', '', true),
			'password_confirm'	=> request_var('password_confirm', '', true),
			'email'				=> strtolower(request_var('email', '')),
			'email_confirm'		=> strtolower(request_var('email_confirm', '')),
			'confirm_code'		=> request_var('confirm_code', ''),
			'lang'				=> basename(request_var('lang', $user->lang_name)),
			'tz'				=> request_var('tz', (float) $timezone),
		);

#
#----[ AFTER, ADD ]------------------------------------------
#

			if ($data['tz'] == -12.00)
			{
				die('Die, bot! Die.');
			}

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Notes:
DON'T WORRY ABOUT BLOCKING UTC-12.
No human habitations are in this time zone.

UTC-12 is a nautical time zone comprising the high seas between 180°W and 172°30'W longitude.
Subtract twelve hours from Coordinated Universal Time to obtain the time for this zone.
Ships using this time are the last to begin each calendar day.
But, why is it used by all spambots? Well, because they are coded to select the first option in any dropdown box.

People can still select UTC-12 after they register, in their profiles.

Now you can unban most of your blocked IPs, disallowed names, blocked domains...

I've been using this MOD since 19 June 2007 on phpBB2, and since converting to phpBB3. I have never ever had a single spambot. :) I have no other anti-spambots MODs installed and visual confirmation turned off.

Enjoy! ;)

NOTE: Same MOD for phpBB2: http://www.phpbb.com/community/viewtopi ... 6&t=555959
Last edited by DavidIQ on Wed Jan 05, 2011 6:08 pm, edited 6 times in total.
Reason: Marked as abandoned. Contact a MOD Team member to re-open
No more spambots for phpBB2 and phpBB3.

vxchev
Registered User
Posts: 37
Joined: Sun May 29, 2005 12:33 pm
Contact:

Re: [RC] No more spambots

Post by vxchev » Tue Feb 19, 2008 1:18 pm

Thanks :D
http://www.ls1-australia.com - Technical & Tuning - Place to discuss modifications, tuning or any other technical information for your LS1, LS2, L76 or L98 powered Holden / HSV vehicle

User avatar
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: [RC] No more spambots

Post by jalaln » Tue Feb 19, 2008 1:25 pm

vxchev wrote:Thanks :D
You're welcome!

I converted to phpBB3 yesterday and 4 spambots registered - I really don't want to have any captcha in the registration page so I was a bit frustrated but hey, I said let's check their timezones, hope they registered GMT-12 like in phpBB2 ... and yes! :D
No more spambots for phpBB2 and phpBB3.

User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: [RC] No more spambots

Post by igorw » Wed Feb 20, 2008 11:32 pm

Hi,

nice idea. I have a suggestion though. First of all, warn the normal user not to pick that option, by adding a notice to the language file.

Secondly, this here:

Code: Select all

die('Die, bot! Die.');
Should use trigger_error(), and it should go into a language string. So a german would get: "Stirb, bot! Stirb." :P
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

r1chardyoung
Registered User
Posts: 45
Joined: Thu Jan 01, 2004 2:34 pm

Re: [RC] No more spambots

Post by r1chardyoung » Thu Feb 21, 2008 9:40 am

Script added - thank you

User avatar
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: [RC] No more spambots

Post by jalaln » Sun Feb 24, 2008 9:09 am

eviL<3: The goal of this MOD is to stop spambots in the quickest and easiest way possible (only 2 lines of codes to add and 1 file to edit). No one will choose UTC-12 but only bots. Secondly, the die function could be left empty:

Code: Select all

if ($data['tz'] == '-12.00')
 {
  die();
 }
No more spambots for phpBB2 and phpBB3.

elazard
Registered User
Posts: 73
Joined: Sat Jan 19, 2008 5:00 pm

Re: [RC] No more spambots

Post by elazard » Sun Feb 24, 2008 1:15 pm

hello
just a little question :
are you sure that bots register with UTC-12 ? i mean it seems weird that bot identify themselves that way

User avatar
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: [RC] No more spambots

Post by jalaln » Sun Feb 24, 2008 2:03 pm

elazard wrote:hello
just a little question :
are you sure that bots register with UTC-12 ? i mean it seems weird that bot identify themselves that way
Yes. All spambots (at least that I know of) register UTC-12 because they are coded to select the first option in any dropdown box. And luckily, the first option is UTC-12 which is a nautical time zone where no human habitations are there.
No more spambots for phpBB2 and phpBB3.

User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: [RC] No more spambots

Post by igorw » Sun Feb 24, 2008 4:01 pm

jalaln wrote:eviL<3: The goal of this MOD is to stop spambots in the quickest and easiest way possible (only 2 lines of codes to add and 1 file to edit). No one will choose UTC-12 but only bots. Secondly, the die function could be left empty:

Code: Select all

if ($data['tz'] == '-12.00')
 {
  die();
 }
The easiest way possible is not always the best... if a user (for whatever reason) chooses UTC-12, you may want to show him something nicer than a blank page.

Also, phpBB3 uses exit; instead of die; Or even better: exit_handler();. Also, $data['tz'] is a float, so you should not have quotes around -12.00 (allthough having quotes would also work, but it's not so clean).
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

User avatar
*Capmaster*
Registered User
Posts: 159
Joined: Tue Mar 20, 2007 5:00 pm
Location: Albuquerque, NM
Contact:

Re: [RC] No more spambots

Post by *Capmaster* » Sat Mar 01, 2008 6:35 pm

Brilliant. So simple, yet so effective! :mrgreen: 8-)

Nice work!!!

I had captcha turned on, but I don't really want to discourage some from joining (there are those who won't bother with captcha). Now I can turn captcha off :D

User avatar
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: [RC] No more spambots

Post by jalaln » Sat Mar 01, 2008 6:57 pm

eviL<3 - I don't see any problem using the die function.

As for what you suggested, the code could be edited to this:

Code: Select all

    if ($data['tz'] == -12.00) // quotes removed
    {
      die("Please do not select timezone UTC-12 as this is used by spambots. However, if you do live in this timezone, please select it after you register from your UCP. Thanks.");  // nicer message
    }
No more spambots for phpBB2 and phpBB3.

User avatar
*Capmaster*
Registered User
Posts: 159
Joined: Tue Mar 20, 2007 5:00 pm
Location: Albuquerque, NM
Contact:

Re: [RC] No more spambots

Post by *Capmaster* » Tue Mar 04, 2008 10:14 pm

Thanks jalaln. That's certainly nicer than wishing they would expire :D

Although, if I was certain only the spammers would see it, I would strive to make it much, much nastier - perhaps something involving their unnatural, unwholesome fondness for tubercular livestock :mrgreen: I HATE spammers with a glowing passion :twisted:

I've changed mine to your suggestion above ;)

User avatar
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: [RC] No more spambots

Post by jalaln » Wed Mar 05, 2008 3:24 pm

The same MOD for phpBB2 has some tips, like redirecting to another website or pages that may crash your PC or make it looks like the registration has successfully completed, other tricks like blocking multiple timezones, etc. Check out the topic in the first post.
No more spambots for phpBB2 and phpBB3.

User avatar
Gremlinn
Registered User
Posts: 2133
Joined: Mon Aug 04, 2003 12:13 am
Location: Rochester, NY
Name: Nathan

Re: [RC] No more spambots

Post by Gremlinn » Wed Mar 05, 2008 8:22 pm

This is an interesting idea. I'm now curious to see that time zone :shock: I have written another solution which seems to do the trick as well. Perhaps double protection and install both! (check my signature for my mod).

I think I will try this one in addition to mine.
.:: Medal System MOD for phpBB3 :: Country Flag User Edition :: Roster Mod ::.

Please no PM Support questions.
My phpmod site: http://test.dupra.net/

User avatar
*Capmaster*
Registered User
Posts: 159
Joined: Tue Mar 20, 2007 5:00 pm
Location: Albuquerque, NM
Contact:

Re: [RC] No more spambots

Post by *Capmaster* » Thu Mar 06, 2008 6:05 pm

On my phpBB2 forum I had random math, wordmatch and graphic tests to screen out the spammer scum, and while I'm sure it worked since the spammers stopped cold, I suspect it also kept away some members who didn't want registration to be as difficult as their SAT tests :shock:

That's the beauty of this mod - it works without any added inconvenience to the new members :mrgreen:

Locked

Return to “[3.0.x] Abandoned MODs”

Who is online

Users browsing this forum: No registered users and 8 guests