Forums / Managing Customers and Orders / Getting rid of automated Fake Customer sign ups?

Getting rid of automated Fake Customer sign ups?

Views: 3,042

Results 1 to 7 of 7
25 May 2011, 9:45 AM
#1
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Getting rid of automated Fake Customer sign ups?

I have alot of fake customer sign ups every day, which is a bit of a nuisance.

They are automated, as the first name is always the same as the surname, and the phone number is always 123456

Is there any way of coding it so if the phone number matches this, or the first name matches the surname, that they get kicked out / sign up refused?

25 May 2011, 10:28 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Getting rid of automated Fake Customer sign ups?

Probably, but a captcha might be easier - search the Free Software Add Ons for 'captcha'.

25 May 2011, 11:05 AM
#4
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Getting rid of automated Fake Customer sign ups?

Captcha is lesser of two evils, and easiest to implement. Otherwise, ban IP address, if known, via Hosting Control Panel

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

31 May 2011, 9:58 AM
#5
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: Getting rid of automated Fake Customer sign ups?

I really need something simple, without captcha

These are the variables in create_account.php

if (strlen($firstname) < ENTRY_FIRST_NAME_MIN_LENGTH) {
$error = true;
$messageStack->add('create_account', ENTRY_FIRST_NAME_ERROR);
}

if (strlen($lastname) < ENTRY_LAST_NAME_MIN_LENGTH) {
$error = true;
$messageStack->add('create_account', ENTRY_LAST_NAME_ERROR);
}

if (strlen($telephone) < ENTRY_TELEPHONE_MIN_LENGTH) {
$error = true;
$messageStack->add('create_account', ENTRY_TELEPHONE_NUMBER_ERROR);
}

So would something like this work e.g..

if (strlen($firstname) = (strlen($lastname) {
$error = true;
$messageStack->add('create_account', ENTRY_FIRST_NAME_ERROR);
}

and..

if (strlen($telephone) = "123456") {
$error = true;
$messageStack->add('create_account', ENTRY_TELEPHONE_NUMBER_ERROR);
}

2 Jun 2011, 12:52 AM
#6
pfabrick avatar

pfabrick

New Zenner

Join Date:
Jan 2006
Posts:
66
Plugin Contributions:
0

Re: Getting rid of automated Fake Customer sign ups?

dgent:

I really need something simple, without captcha

These are the variables in create_account.php

if (strlen($firstname) < ENTRY_FIRST_NAME_MIN_LENGTH) {
$error = true;
$messageStack->add('create_account', ENTRY_FIRST_NAME_ERROR);
}

if (strlen($lastname) < ENTRY_LAST_NAME_MIN_LENGTH) {
$error = true;
$messageStack->add('create_account', ENTRY_LAST_NAME_ERROR);
}

if (strlen($telephone) < ENTRY_TELEPHONE_MIN_LENGTH) {
$error = true;
$messageStack->add('create_account', ENTRY_TELEPHONE_NUMBER_ERROR);
}

So would something like this work e.g..

if (strlen($firstname) = (strlen($lastname) {
$error = true;
$messageStack->add('create_account', ENTRY_FIRST_NAME_ERROR);
}

and..

if (strlen($telephone) = "123456") {
$error = true;
$messageStack->add('create_account', ENTRY_TELEPHONE_NUMBER_ERROR);
}

No, with that code you would reject anyone with the same number of digits in their first & last names (eg. John Park). I would seriously reconsider making these kinds of coding changes without being familiar with php.

Patti - OnlineCatholicStore.com
ZC 1.3.9h with multisite mod -- ZC ROCKS!

2 Jun 2011, 8:45 AM
#7
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: Getting rid of automated Fake Customer sign ups?

pfabrick:

No, with that code you would reject anyone with the same number of digits in their first & last names (eg. John Park). I would seriously reconsider making these kinds of coding changes without being familiar with php.

This is why Im asking someone what to put...:huh: