1
terrion
New User Registration and Activation Question
  • 2006/3/4 13:53

  • terrion

  • Friend of XOOPS

  • Posts: 299

  • Since: 2004/9/19


Is there a way in XOOPS 2.2.4 to disallow using gmail, hotmail, yahoo mail, or any other free and untraceable email accounts for validateing a user?

What I'm looking for exactly is a way of banning certain email systems just as we can already ban ip addresses.

A dialogue box that would ban @gmail.com, @hotmail.com, or anything else on the right side of the @ site would be very handy!

With not a single exception all the troublemakers, spammers, malcontents, jerks, etc, have validated on my sites using these FREE email services. Some of the crap I've seen I'd report to the authorities, but, well, they might as well be unvalidated at all using these email systems to validate on Xoops....
Terrion
Purchase, renew, or transfer your domain name to Ultranet Domains and get a FREE 10GB hosting account. Virtual Dedicated Servers around $35/monthly, no contract. FREE 24/7 telephone ...

2
JamesSAEP
Re: New User Registration and Activation Question
  • 2006/3/4 16:13

  • JamesSAEP

  • Just can't stay away

  • Posts: 732

  • Since: 2005/2/28


I've been looking for a way to do this as well, but haven't had any luck, yet.

3
byronbussey
Re: New User Registration and Activation Question
  • 2006/5/6 22:30

  • byronbussey

  • Just popping in

  • Posts: 3

  • Since: 2006/5/3 1


in the register.php file there is


if (strrpos($email,' ') > 0) {
$stop .= _US_EMAILNOSPACES.'
';

which prevents a user to supply an email with spaces...
you could simply duplicate this with:
(note the change of function to stristr)


if (stristr($email,'gmail.com') > 0) {
$stop .= _US_EMAILNOSPACES.'
';

and gmail.com would be disallowed. Pack an array from a .txt file on your server of the banned email hosts and do a While Loop and you would have what you need. I cannot whip up PHP off the top of my head but maybe someone else (or you can).
GL.

Byron

4
m0nty
Re: New User Registration and Activation Question
  • 2006/5/6 22:59

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


in the admin theres a section where you can enter email addresses that you want disallowed.. either in preferences or user settings.. i can't remember which..

5
RachelVirago
Re: New User Registration and Activation Question

Thanks byronbussey so this is relatively simple but would prefer to do this in preferences if possible.

Is it possible with a regular expression? (regex)

I have been searching sites such as regex library (and of course Xoops) but so far no luck.
Being transgender is NOT a choice.

6
RachelVirago
Re: New User Registration and Activation Question

OK! doddle!

just put in preferences/user info settings

hotmail|yahoo|spambob ...... etc.

found this >here<

Cant believe it is so simple. Don't do what I at first did due to fatique which was enter "hotmail" because this will clear ALL disallowed address's in that field!! arghhh!

Not really a problem though because all previous banned addys were webmail.
Being transgender is NOT a choice.

Login

Who's Online

307 user(s) are online (253 user(s) are browsing Support Forums)


Members: 0


Guests: 307


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits