By aelsharawi on Wednesday, 21 May 2014
Replies 10
Likes 0
Views 1K
Votes 0
Im trying to use this :
components/com_user/controller.php
to this
  // If user activation is turned on, we need to set the activation information
$useractivation = $usersConfig->get( 'useractivation' );
if ($useractivation == '1')
{
jimport('joomla.user.helper');
$user->set('activation', JUtility::getHash( JUserHelper::genRandomPassword()) );
$user->set('block', '1');
}

// ##### BEGIN: SPAM DOMAIN FILTER #####
// Kick out spam domains
$email = $user->get('email');
if ( strpos($email,"gawab.com") ||
strpos($email,"mail.ru") ||
strpos($email,"list.ru") ||
strpos($email,"bk.ru") ||
strpos($email,"yahoo.co.uk") ||
strpos($email,"gmail.com") ||
strpos($email,"minivds.ru") ||
strpos($email,"nakgirls.ru") ||
strpos($email,"yandex.ru") ||
strpos($email,"info1a.cn") ||
strpos($email,"gooogletartsert.net") ||
strpos($email,"freemeilaadressforall.net") ||
strpos($email,"goodemailadressforfree.net") ||
strpos($email,"5opicforum.cn") ||
strpos($email,"pozitifff.com") ||
strpos($email,"2008bases1.net") ||
strpos($email,"nm.ru") ||
strpos($email,"goldwoof.net") ||
strpos($email,"megapochta.cn") ||
strpos($email,"meta.ua") ||
strpos($email,"fene4ek.net") ||
strpos($email,"mail15.com") ||
strpos($email,"googlemail.com") ||
strpos($email,"yandex.com") ||
strpos($email,"inmail24.com") )
{
JError::raiseWarning('','e-Mail domain is spam flagged');
$this->register();
return false;
}
// ##### END: SPAM DOMAIN FILTER #####

http://forum.joomla.org/viewtopic.php?p=1564182

to ban certain spammers on my website, Do i need to edit anything in easysocial or this enough ?
Hello Aelsharawi,

Thanks for sharing!

If you use EasySocial, you do not need to add any hacks Just go to your email field and enter these domains as disallowed. Then, activate EasySocial's system plugin to redirect all users who tries to register on the site to EasySocial's registration page
·
Thursday, 22 May 2014 00:15
·
0 Likes
·
0 Votes
·
0 Comments
·
thanks Mark,but the list I posted found to have gmail ,and yahoo.co.uk ,so everybody take care before blocking these emails.
·
Thursday, 22 May 2014 00:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Spammers these days are pretty smart They start to use gmails / outlook
·
Thursday, 22 May 2014 03:27
·
0 Likes
·
0 Votes
·
0 Comments
·
hello mark......

Just go to your email field and enter these domains as disallowed.


where is that?
·
Monday, 16 June 2014 05:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Keep it simple.

Install the Joomla SpambotCheck component (see here )

It is free and eliminates virtually all spam attacks from registering on your site.

I use it and it does what the reviews say.
·
Monday, 16 June 2014 07:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello babylon,

You can find it by editing the custom field as you can see here, http://screencast.com/t/9o7fcU8d
·
Monday, 16 June 2014 12:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

Where exactly would I find that in the admin area of EasySocial? I'm having a hard time tracking it down.

Thanks.
·
Sunday, 22 June 2014 05:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Justin,

Are you referring to the custom fields? You can find it by accessing "Profile Types", then click on the profile type that you are using. After that, click on the Custom Fields tab. Once you are on the custom fields form, click on the email field and you will see the settings
·
Sunday, 22 June 2014 12:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Perfect - thanks Mark!
·
Sunday, 22 June 2014 21:01
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Justin
·
Sunday, 22 June 2014 23:04
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post