Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 Avoid same customer name and last name when regist
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

soncci
VP-CART New User

USA
97 Posts

Posted - November 29 2010 :  12:36:53  Show Profile  Visit soncci's Homepage  Reply with Quote
I had been attack by pornographic sites that registered to my customer list using different names and IP's but at the same time each time they register they put the same name and last name with a fake e-mail.
I really don't know what is the purpose of these people, since I don't save any credit cards in my database and they will not be able to get the other customers e-mail addresses. But it is annoying to have these people trying every day several times.
Does anybody else had these kind of problem?
Just in case they will be able to access my database, I would like to block any customer that will try to register using equal name and last name.
Is that possible? How?
Should I need to use a query in the sql database? How would that be done?
This shopping cart has 6.5 version, and as I wrote above using sql.
Any help will be appreciated.

Sonia

Edited by - soncci on November 29 2010 20:22:34

carfin
VP-CART Expert

United Kingdom
948 Posts

Posted - November 30 2010 :  04:59:03  Show Profile  Reply with Quote
Hi Sonia,

Firstly make sure that you are completely up to date with security patches etc for V6.5

The easiest way to stop the duplicate first and last name is to add a check to shopcustomerform.asp

Open this file in a text or html editor and find the following sub routine (line 360 approx)

Sub ValidateCustomerFields

Immediately after the first line of this sub, add the following code, replacing my message with whatever text you want to display

If strfirstname = strlastname Then
sError = sError & "We cannot register that name. Please contact our office" & "<br />"
End if


It is fairly uncommon (in the western world) for a person to have the same first and last names, but if someone does try to register and is serious about purchasing anything they will use the contact us page to ask why they cannot register on the site.

Hope this helps.

Regards,

Carrol
www.deanston-electrical.co.uk
Go to Top of Page

soncci
VP-CART New User

USA
97 Posts

Posted - November 30 2010 :  10:24:01  Show Profile  Visit soncci's Homepage  Reply with Quote
Thank you very much for your reply Carrol.
It works perfectly.
Yes, I have the last security patch for 6.5 installed.
Thank you for your advise and help.

Sonia
http://www.babynucci.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00