FAQ FAQ   Search Search   Memberlist Memberlist   Usergroups Usergroups   Register Register 
PhpBB- & WordPress- antispam.com
Home of the Antispam for all fields mod ! 
  Profile Profile   Log in to check your private messages Log in to check your private messages  Log inLog in 

 PhpBB- & WordPress- antispam.com Forum Index » [PhpBB2] Feature requests » Timezone rule
  The time now is Tue Oct 17, 2017 11:27 pm 

 Post new topic   Reply to topic View previous topic :: View next topic  
Author Message
PostPosted: Wed Oct 24, 2007 9:44 pm    Post subject: Timezone rule  Reply with quote  

WebSnail
Phpbb coder


Joined: 14 Dec 2006
Posts: 38

Ever noticed how every spammer is from Australia?

Could we have a rule that takes into account if the registrant grabs the first field in timezone..

One thing though, could you take into account this mod:
http://www.snailsource.com/forum/viewtopic.php?t=4202

Mainly because I wrote it Wink

TOP View user's profileSend private messageVisit poster's website  BOTTOM
PostPosted: Thu Oct 25, 2007 2:48 am    Post subject:  Reply with quote  

Lord Raiden
Experienced user


Joined: 11 Dec 2006
Posts: 123

Nah, I haven't had them from Australia. But I sure have had a lot from Russia.

TOP View user's profileSend private message  BOTTOM
PostPosted: Thu Oct 25, 2007 11:21 am    Post subject:  Reply with quote  

WebSnail
Phpbb coder


Joined: 14 Dec 2006
Posts: 38

Lord Raiden wrote:
Nah, I haven't had them from Australia. But I sure have had a lot from Russia.

Sorry, should have been more specific.

Timezone setting is always the very first option in the select field when a bot registers (ie: GMT-12)

TOP View user's profileSend private messageVisit poster's website  BOTTOM
PostPosted: Sat Oct 27, 2007 7:42 pm    Post subject:  Reply with quote  

ramon fincken
Site Admin


Joined: 11 Dec 2006
Posts: 269
Location: A'dam/Diemen, The Netherlands

Yep, thought of that too:


Code:
   // Timezone tests
   if (isset ($timezone) && !empty ($timezone) && $timezone = -12) {
      $locations = array (
         'usa',
         'us',
         'london',
         'paris',
         'belgium',
         'holland',
         'bulgaria',
         'cambodia',
         'denmark',
         'denver',
         'deutschland',
         'england',
         'eritrea',
         'nigeria',
         'niger',
         'milan',
         'napels',
         'netherlands',
         'amsterdam',
         'europe'
      );
      foreach ($locations as $testlocation) {
         $pattern = '/' . $testlocation . '/';
         preg_match($pattern, strtolower($location), $matches, PREG_OFFSET_CAPTURE);
         if (count($matches) > 0) {
            return array (
               'error' => true,
               'error_msg' => 'No valid timezone.'
            );
         }
      }
      $location = str_replace(' ', '', $location);
      if (empty ($location)) {
         return array (
            'error' => true,
            'error_msg' => 'No valid location for this timezone.'
         );
      }
   }

_________________
Phpbbantispam founder, available for freelance WordPress coding.

PhpBB2 mod: http://www.phpbbantispam.com/viewtopic.php?t=1
WordPress plugin: http://wordpress.org/extend/plugins/antispam-for-all-fields/
Project files & mailinglist: https://sourceforge.net/projects/phpbbantispam/

TOP View user's profileSend private messageVisit poster's website  BOTTOM
PostPosted: Tue Aug 18, 2009 1:30 pm    Post subject:  Reply with quote  

ramon fincken
Site Admin


Joined: 11 Dec 2006
Posts: 269
Location: A'dam/Diemen, The Netherlands

queued to look into for a next version Martin Smile
_________________
Phpbbantispam founder, available for freelance WordPress coding.

PhpBB2 mod: http://www.phpbbantispam.com/viewtopic.php?t=1
WordPress plugin: http://wordpress.org/extend/plugins/antispam-for-all-fields/
Project files & mailinglist: https://sourceforge.net/projects/phpbbantispam/

TOP View user's profileSend private messageVisit poster's website  BOTTOM
 Post new topic   Reply to topic All times are GMT + 1 Hour

Display posts from previous:   
 PhpBB- & WordPress- antispam.com Forum Index » [PhpBB2] Feature requests » Timezone rule
 
 Page 1 of 1
 
 
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Jump to:  


     Powered by phpBB © 2001, 2005 phpBB Group | Template Neon | Snelle Managed WordPress webhosting