Zen Cart Logo
Forums / Fraud Prevention / Log Customer IP Address During Registration

Log Customer IP Address During Registration

Locked

Views: 4,046

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
28 Nov 2008, 11:36 PM
#1
eplutons avatar

eplutons

New Zenner

Join Date:
Nov 2008
Posts:
13
Plugin Contributions:
0

Log Customer IP Address During Registration

Does anyone know of an addon or just a way to record the IP address of the customer registering so it can be easily viewed in the Customers section of the Admin panel? I am aware Zen Cart does it during a purchase but I would like it during registration too. Any help with this would be greatly appreciated!

29 Nov 2008, 12:00 AM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Log Customer IP Address During Registration

I'm not aware of any add-in to do this, so you would probably need to be build it from scratch by adding a field to the customer table and capturing this information in the create_account module.

29 Nov 2008, 12:21 AM
#3
eplutons avatar

eplutons

New Zenner

Join Date:
Nov 2008
Posts:
13
Plugin Contributions:
0

Re: Log Customer IP Address During Registration

Thanks! But.... I am far from a coder lol so I couldn't do it without some more info. I know how to edit code with direct instruction lol.

29 Nov 2008, 3:53 AM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Log Customer IP Address During Registration

Just curious - what use will it be to have the customer's IP address recorded? I know mine changes at the whim of my ISP, so that I can't get financial websites to recognize that I am at the same computer I was at the last time I logged in.

1 Dec 2008, 11:14 PM
#5
eplutons avatar

eplutons

New Zenner

Join Date:
Nov 2008
Posts:
13
Plugin Contributions:
0

Re: Log Customer IP Address During Registration

The IP address gives me your general location which would be used to estimate the fraud potential.

2 Dec 2008, 6:41 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Log Customer IP Address During Registration

Sounds reasonable, though I've heard that it is possible for fraudsters to spoof their ip address so it looks like they are coming from a different location. Most of them don't do that, though.

2 Dec 2008, 7:01 PM
#7
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Log Customer IP Address During Registration

gjh42 is right.

If you're hoping to minimize fraud, trying to do so by logging IP address is futile. 99% of the public connects to the internet using dynamically generated IP addresses, and fraudsters do indeed spoof their IP's.

The best prevention against fraud are to:

  • make sure your site and your server are as secure as possible by correctly configuring security elements and using the most up-to-date versions of zencart,
  • install and configure SSL (dedicated SSL is best),
  • consider using CAPTCHA scripts on mailer forms and user input submissions,

And in the commercial process...

  • View different billing and shipping addresses as suspicious until proven otherwise.
  • Use a proper online payment gateway for c-card transactions.
  • Never store credit card data in your database.
  • Do not accept online orders from people in countries you would not normally do business with. Telephone interested customers and verify their credentials.
  • View your user logs daily and look for suspicious behaviours.
  • Report any suspicious attempts to hack your site to your hosting service immediately.
16 Jun 2010, 4:27 PM
#8
rehopper avatar

rehopper

New Zenner

Join Date:
Sep 2009
Location:
Northern New York state, West Monroe,NY
Posts:
60
Plugin Contributions:
0

Re: Log Customer IP Address During Registration

Can the customer's IP address be captured & recorded during their registration process?
Would be helpful when doing sales, click thru analysis, etc.

16 Jun 2010, 9:49 PM
#9
llynix avatar

llynix

Zen Follower

Join Date:
Jul 2009
Location:
Texas
Posts:
210
Plugin Contributions:
0

Re: Log Customer IP Address During Registration

I don't know about their registration ip address. But I do know the Ip address of the customer is logged when they place an order and can be displayed from the orders page in admin.

16 Jun 2010, 10:38 PM
#10
rehopper avatar

rehopper

New Zenner

Join Date:
Sep 2009
Location:
Northern New York state, West Monroe,NY
Posts:
60
Plugin Contributions:
0

Re: Log Customer IP Address During Registration

Yes, that makes me believe it should be possible to capture their IP at the git-go!
Gonna take someone much smarter than me to do so though!

17 Jun 2010, 2:17 AM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Log Customer IP Address During Registration

You could add a new field to the customers table ...

Then, when the record is created you can add the current ip_address from the $_SESSION['customers_ip_address'] in the create_account module ...