spam.. spam..spam.. spam... IDEA.... - part 2

Quote · 18 Dec 2012

 "At the end of the file find "at the end of the file find bx_import('BxDolAlerts');"

Which one, there are two. Also is this compatible with D7.1 Beta2?

Stuart

 

Time ago, prolaznik has published another way for restrict some of email providers of spammer on registration, I've added the email to ban, and this works very well for me..

 

Step1.

/inc/ design.inc.php

at the end of the file find
bx_import('BxDolAlerts');

and add this ABOVE it.

function ForbidenEmailProvider($Email)

     {
     
       $ForbidenEmailProvider[] = "@163.com";

       $ForbidenEmailProvider[] = "@sohu.com";

       $ForbidenEmailProvider[] = "@21cn.com";

       $ForbidenEmailProvider[] = "@gmx.com";

       $ForbidenEmailProvider[] = "@126.com";

       $ForbidenEmailProvider[] = "@qq.com";

       $ForbidenEmailProvider[] = "@yahoo.cn";

       $ForbidenEmailProvider[] = "@mx8168.net";

       $ForbidenEmailProvider[] = "@110mail.net";

       $ForbidenEmailProvider[] = "@buybrandshop.info";

       $ForbidenEmailProvider[] = "@lenfos.com";

       $ForbidenEmailProvider[] = "@mailinator.com";

       $ForbidenEmailProvider[] = "@tom.com";

       $ForbidenEmailProvider[] = "@hotmilitararygirls.com";

       $ForbidenEmailProvider[] = "@speaktolearn.net";

       $ForbidenEmailProvider[] = "@qtyhosting.com";

       $ForbidenEmailProvider[] = "@12gohere.net";

       $ForbidenEmailProvider[] = "@boxedchristmascards.ne";

       $ForbidenEmailProvider[] = "@yeah.net";

       $ForbidenEmailProvider[] = "@free-medicine.net";

       $ForbidenEmailProvider[] = "@satiny.co.uk";

       $ForbidenEmailProvider[] = "@energyforthehome.com";

       $ForbidenEmailProvider[] = "@dunkssb.net";

       $ForbidenEmailProvider[] = "@pumpkincarving.org";

       $ForbidenEmailProvider[] = "@theory-test-practice.co.uk";

       $ForbidenEmailProvider[] = "@cooljordanshoestore.com";

       $ForbidenEmailProvider[] = "@betfairmethods.com";
    
       foreach($ForbidenEmailProvider as $key => $value)
          {
          if ( strpos("zyx".$Email,$value) > 0 )
             return false;
          }  

       return true;

     }



Step2.

in administration / builders / profile fields (join form)
edit the email field click on advanced and replace 

return (bool) preg_match('/^([a-z0-9+_-.]+)@([a-z0-9+_-.]+)$/i', $arg0);

WITH THIS

return ( ForbidenEmailProvider($arg0) and preg_match('/^([a-z0-9+_-.]+)@([a-z0-9+_-.]+)$/i', $arg0) );

Step3.

in administration / settings / languages settings look for 

_FieldError_Email_Check 

and edit the error msg. that's displayed, the default one is (please enter correct email) change to something like this

Invalid email address / or the email provider you are using is blacklisted.

or whatever you like.

That's it  you can add more email providers or remove some

$ForbidenEmailProvider[] = "@someprovider.";

 

 

There are none so blind as those that will not see.
Quote · 18 Dec 2012

last one, bottom one, one at the end,  works for me on 71b2

how it looks

function ForbidenEmailProvider($Email)
       {
   
       $ForbidenEmailProvider[] = "@163.com";
       $ForbidenEmailProvider[] = "@sohu.com";
       $ForbidenEmailProvider[] = "@21cn.com";
       $ForbidenEmailProvider[] = "@gmx.com";
       $ForbidenEmailProvider[] = "@126.com";
       $ForbidenEmailProvider[] = "@qq.com";
       $ForbidenEmailProvider[] = "@yahoo.cn";
       $ForbidenEmailProvider[] = "@mx8168.net";
       $ForbidenEmailProvider[] = "@110mail.net";
       $ForbidenEmailProvider[] = "@buybrandshop.info";
       $ForbidenEmailProvider[] = "@lenfos.com";
       $ForbidenEmailProvider[] = "@mailinator.com";
       $ForbidenEmailProvider[] = "@tom.com";
       $ForbidenEmailProvider[] = "@hotmilitararygirls.com";
       $ForbidenEmailProvider[] = "@speaktolearn.net";
       $ForbidenEmailProvider[] = "@qtyhosting.com";
       $ForbidenEmailProvider[] = "@12gohere.net";
       $ForbidenEmailProvider[] = "@boxedchristmascards.ne";
       $ForbidenEmailProvider[] = "@yeah.net";
       $ForbidenEmailProvider[] = "@free-medicine.net";
       $ForbidenEmailProvider[] = "@satiny.co.uk";
       $ForbidenEmailProvider[] = "@energyforthehome.com";
       $ForbidenEmailProvider[] = "@dunkssb.net";
       $ForbidenEmailProvider[] = "@pumpkincarving.org";
       $ForbidenEmailProvider[] = "@theory-test-practice.co.uk";
       $ForbidenEmailProvider[] = "@cooljordanshoestore.com";
       $ForbidenEmailProvider[] = "@betfairmethods.com";
       $ForbidenEmailProvider[] = "@aksarat.eu";
       $ForbidenEmailProvider[] = "@mail114.net";
       $ForbidenEmailProvider[] = "@supraonfootstore.com";
       $ForbidenEmailProvider[] = "@hush.com";
       $ForbidenEmailProvider[] = "@linkjewellery.com";
            
       foreach($ForbidenEmailProvider as $key => $value)
          {
          if ( strpos("zyx".$Email,$value) > 0 )
             return false;
          }

       return true;

     }

bx_import('BxDolAlerts');
$oZ = new BxDolAlerts('system', 'design_included', 0);
$oZ->alert();

Quote · 18 Dec 2012

Many thanks for that (ps. that was quick!!)

Stuart

There are none so blind as those that will not see.
Quote · 18 Dec 2012

Man even pumpkincarving dot org has resorted to spamming? What has this world come to, lol.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 18 Dec 2012

 RE

Man even pumpkincarving dot org has resorted to spamming? What has this world come to, lol.

 It's a world gone mad.  I even get spammed by 'The Chihuahua Store'.

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 18 Dec 2012

To stop spamming on my site i removed the description and any other text block required information from my join form.  I enforced email confirmation in order to view the site, edit profiles or anything else.  

Of course folks are joining but with out confirming their email it goes no where.

Quote · 22 Dec 2012

Hey, 

I am having the same problem too....Its driving me insane! 

sybersolutions - I did this too but i found that it still creates a profile page even if they are not activated yet. So Google can still pick up on these profile pages even without the member confirming an email. Did you get around this?

Thanks

M

Quote · 10 Jan 2013

I don't use the captcha. I got way too many spam bots. I have used another human verification method for Dolphin 7.0.9 with complete success in preventing bots from joining. I learned it from a programer on the DevelopPhp web site.  In the join form create a field that has a max value of 0 (zero).  Then set the defaullt value as "Delete this text"  Your caption can also instruct the user to delete the text in the box.  For some reason bots will not complete this correctly.  You will also want a Maximum exceed error message like "You did not delete the text in this box."

I have not yet tried splitting the form into two or more pages.

There is a post with a similar spam bot solution, but I like the simplicity of this idea and it works.  So Far zero bots for me since using it about two months now. I can use auto activation too!

Even smart people do stupid things.
Quote · 26 Jan 2013

 No I have not.  I am creating the multiple page join form to see if that works.  I am also thinking about attempting to rename my join form.

I guess I have to wait and see if these work.

Quote · 27 Jan 2013

Perfect! I have an older version on Dolphin and this method worked great ... so far. The other method didn't work anymore, because the bots were using @hotmail.com, @gmail.com and other popular domains. 

I don't use the captcha. I got way too many spam bots. I have used another human verification method for Dolphin 7.0.9 with complete success in preventing bots from joining. I learned it from a programer on the DevelopPhp web site.  In the join form create a field that has a max value of 0 (zero).  Then set the defaullt value as "Delete this text"  Your caption can also instruct the user to delete the text in the box.  For some reason bots will not complete this correctly.  You will also want a Maximum exceed error message like "You did not delete the text in this box."

I have not yet tried splitting the form into two or more pages.

There is a post with a similar spam bot solution, but I like the simplicity of this idea and it works.  So Far zero bots for me since using it about two months now. I can use auto activation too!

 

Quote · 12 Jul 2013

 

The other method didn't work anymore, because the bots were using @hotmail.com, @gmail.com and other popular domains.

 Have I got news for you all....

Denre has let me in on a new updated feature to the Bot Stop module he offers, it is a must have now to avoid even these spammers.

The added feature now actually checks the email address to see if it exist! This stops the random spam bots dead too.

Your asked to enter a "working" email address and the query is done again then your account is created!

I all most fell off my chair when I first tested.

[edit] see it in action here... http://www.recoverstormtreasures.com/

I think the release is tomorrow. 

http://www.youtube.com/watch?v=l0eUjGWmjG0

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 26 Jan 2014

There's always a catch 22 to everything, damned if you do, damned if you don't :) 

 

Can be used on your site for spammers to check if it's a valid email or not lol 

Guynuked -- Dedicated server and Dolphin-friendly hosting with Zarconia.net
Quote · 26 Jan 2014

This new feature is not necessarily there to stop spam bots but to stop anyone from registering wit an incorrect emailaddress. It's all part of my efforts for smooth signups. I already have the GEO Locator that shows local profiles and fills in location details in forms, my BotStopper to check for spam signups and now thus for REAL email validation.

I don't think this new feature will be used by spambots to check the validity of emailaddresses. The method I use is the same method they could use but then directly with the mail provider (outlook.com, yahoo.com, etc.), instead of using the Dolphin registration page. Besides that, the email validation is done after all spam checks, so...

With regards to a release date, this won't be this week. I have optimised the code further, got rid of the delay and I'm currently testing this on my own live site.  This means it will be at least another week before the functionality will be available to the community.

Dedicated servers for as little as $32 (28 euro) - See http://denre.com for more information
Quote · 26 Jan 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.