1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ip from email sign ups

Discussion in 'Social Networking Sites' started by grollrir, Jan 26, 2015.

  1. grollrir

    grollrir Newbie

    Joined:
    Nov 17, 2014
    Messages:
    13
    Likes Received:
    0
    I'm preparing to build my first email list and I was wondering if someone knows a way to scrape the ip for location from sign ups. Would be extremely useful for targeting particular areas for commerce.

    respectfully
    Newbie
     
  2. Tails

    Tails BANNED BANNED

    Joined:
    Jan 20, 2015
    Messages:
    70
    Likes Received:
    6
    You raise a valid point never heard of this idea before.
     
  3. fatboy

    fatboy Elite Member

    Joined:
    Aug 13, 2008
    Messages:
    1,618
    Likes Received:
    3,229
    Occupation:
    Retired
    Location:
    Old Peoples Home
    If I was having a go at it I would make the form and when they hit submit, you go to the thank you page.
    On that page, I guess you are putting the email address into a database of some sort? If you are using PHP its easy enough to grab the users IP address and add that to the database.

    To get the location, use an API to get the location. I have used http://ipinfodb.com/ip_location_api.php before and its not half bad. Thats another PHP request to the API and then save the result into the database.

    Not the hardest script to put together :)
     
    • Thanks Thanks x 2