Code: Select all
##############################################################
## MOD Title: AntiSpamBot by timezone
## MOD Author: 3Di < [email protected] > (Marco) http://gold.io3di.com
## MOD Description: Stops every registration attempted using timezone '-12'
## MOD Version: 0.1.0 beta
##
## Installation Level: Easy
## Installation Time: 3 Minutes
## Files To Edit:
##
## includes/ucp/ucp_register.php
## language/en/ucp.php
##
## Included Files:
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## MOD Compatibility: phpbb 3.0.4 (http://www.phpbb.com)
##
## Inspiration gotten from a phpBB2 MOD I don't recall the name though.
## I wrote this because a spambot registered at my phpbb3.0.4 board today. o_O
##
## UTC-12 it is used by all known spambots (as far as I know)
## UTC−12 is a nautical time zone comprising the high seas between 180° 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.
## No human habitations are in this time zone.
## Uninhabited Baker Island and Howland Island are the only landmasses in this time zone.
##
##############################################################
## MOD History:
##
## 2009-02-05 - Version 0.1.0 beta
## - first public release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]---------------------------------------------
#
includes/ucp/ucp_register.php
#
#-----[ FIND ]------------------------------------------------
#
if ($data['email'] != $data['email_confirm'])
{
$error[] = $user->lang['NEW_EMAIL_ERROR'];
}
#
#-----[ AFTER, ADD ]---------------------------------------------
#
// --- antispambot tz -12 by 3Di start ----------
$check_tz_minus12 = -12;
if ($data['tz'] == $check_tz_minus12)
{
$message = '<br /><br />' . $user->lang['YOU_SPAMBOT_TZ_MINUS12'] . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a>');
trigger_error($message);
}
// --- antispambot tz -12 by 3Di end ------------
#
#-----[ OPEN ]---------------------------------------------
#
language/en/ucp.php
#
#-----[ FIND ]------------------------------------------------
#
'NEW_EMAIL_ERROR' => 'The e-mail addresses you entered do not match.',
#
#-----[ AFTER, ADD ]---------------------------------------------
#
// --- antispambot tz -12 by 3Di start ----------
'YOU_SPAMBOT_TZ_MINUS12' => 'Your application cannot be performed, contact the Board\'s Administrator for further informations!<br /><br />',
// --- antispambot tz -12 by 3Di end ------------
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
No human being lives in UTC-12.Doppiapunta wrote:I didn't get the relationship between UTC_12 and its antispam function...well..nevermind..if it works fine, it oky anyway.
I doubt that's true. Most spammers seem to.MartectX wrote:No human being lives in UTC-12.Doppiapunta wrote:I didn't get the relationship between UTC_12 and its antispam function...well..nevermind..if it works fine, it oky anyway.
Have you tried required custom profile fields yet? I have and my spam went to almost zero (maybe 4 in several months). I've even turned off CAPTCHA completely (they're really annoying) and still didn't see any increase in spammers. (And, yes, I do get visited by spam bots. I turned off the custom profile field for one day and got 13 spammers.)Doppiapunta wrote:Well...Sortables plugin didn't impress me much: i I installed and properly configured yesterday and tonight I experinced the worst spam attacck from months... I manually deleted at least 200 posts and banned manually at least 60 spamming users.
This is very nasty.
Have you any ideas?
Failed confirms: 18728; Failed ips: 2246; Successful confirms: 37; Successful ips: 29
Where did you get those numbers? That's not available in phpBB, is it? If not, could it be? (And how about something similar for required custom profile fields. I'd love to see those items in a log in the ACP.)nickvergessen wrote:I'm quite successful with the normal captcha of 3.0.5 in some special settings:Failed confirms: 18728; Failed ips: 2246; Successful confirms: 37; Successful ips: 29