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

Html for Ip location...

Discussion in 'Black Hat SEO' started by luckykittypurrpurr, Nov 8, 2008.

  1. luckykittypurrpurr

    luckykittypurrpurr Registered Member

    Joined:
    Aug 20, 2008
    Messages:
    72
    Likes Received:
    48
    I'm very sorry if this post was posted before, I searched "ip location" and other varients and couldn't find what I was looking for. It is so simple too its kinda embarrassing to ask you guys.....

    I was wondering if anyone had the html code to put into your webpage that will read the city.state of the viewer.

    The viewer of the webpage will see this

    "You are currently in city, state"

    But I would like to customize the "you are currently in" part, or just get the script for showing the city, state of the viewer. I had The script before on one of my old websites, but the website i got it from is temp down. I'm pretty sure it was freeipservices....but its down :(

    Anyone know of a script or where i can find this for free?

    Thanks in advance and sorry if this has been posting previously.
     
  2. fatboy

    fatboy Elite Member

    Joined:
    Aug 13, 2008
    Messages:
    1,618
    Likes Received:
    3,227
    Occupation:
    Retired
    Location:
    Old Peoples Home
    Take a look at Maxmind (http://www.maxmind.com/app/city).
    You can either buy their databases or if you are going to query the database now and again, take a look at their bulk query buys.

    Lets you run checks against their site, starting at something like $20 for 50K lookups.

    I know its not free, but I have never found one that goes down to city level for free - if you remember yours please tell us tho!
     
  3. fatboy

    fatboy Elite Member

    Joined:
    Aug 13, 2008
    Messages:
    1,618
    Likes Received:
    3,227
    Occupation:
    Retired
    Location:
    Old Peoples Home
    • Thanks Thanks x 1
  4. luckykittypurrpurr

    luckykittypurrpurr Registered Member

    Joined:
    Aug 20, 2008
    Messages:
    72
    Likes Received:
    48
    Ok, I am not looking up where an ip is. I am looking for a script that will read the viewers IP and show what city,state they are in.

    That one is for flag not city and state. So on the flag one on that page I just replaced the url with the city/state one they have and replaced the IP with aa.bb.cc.dd like they say, and it doesn't work. comes up as a ? mark. so What am I missing, or is this something else...
     
  5. luckykittypurrpurr

    luckykittypurrpurr Registered Member

    Joined:
    Aug 20, 2008
    Messages:
    72
    Likes Received:
    48
    Ok I found one on widgetbox but it has this aweful "get widget" thing under it. The name of the widget is "visitor IP address city". Anyway I am still searching.... If anyone can find something similar to this widget but something so people don't know it sa widget and free let me know

    Oh yeah and danasoft has one, but the words aren't very customizable :(
     
  6. luckykittypurrpurr

    luckykittypurrpurr Registered Member

    Joined:
    Aug 20, 2008
    Messages:
    72
    Likes Received:
    48
    Ok I figured it out here.... you can change the wording and alter it to have only city,state or whatever you want....:)

    Code:
    <script language="Javascript" 
       src="http://www.ip2phrase.com/ip2phrase.asp?template=
       Thank you for visting from <CITY>, <COUNTRY>
       You are browsing our website through ISP <ISP>" </script>
     
  7. chachinga

    chachinga Guest

    Well I just tested it on my own IP and it came up unknown, so it is decent for a free solution, but maxmind is better. And for $20 for 50k impressions.. well are you really that cheap? I use maxmind just for ip to country lookup and got 200k for $20. For my purposes, it's nice and accurate and cheap.
     
  8. apekillape

    apekillape Senior Member Premium Member

    Joined:
    Dec 13, 2007
    Messages:
    1,077
    Likes Received:
    1,441
    Occupation:
    Basically, I just walk the Earth.
    Location:
    The Layer Cake
    You can use the geolite database from maxmind for free, it's just as good in my experience.

    Gotta know a little sql, but it's very simple to set up and there are plenty of guides around. If you go with that, feel free to hit me up if you get stuck.

    N
     
    • Thanks Thanks x 1
  9. luckykittypurrpurr

    luckykittypurrpurr Registered Member

    Joined:
    Aug 20, 2008
    Messages:
    72
    Likes Received:
    48
    Cool thanks a lot. I did have a bit of a snag with the code I posted earlier, since it makes it a link for people to click on and I couldn't get the color to change without making the script dissappear. So what I did was I put an object layered on top of it. I used light pink, and made it a bit transparent, so they see the location (it ends up in purple) but its unclickable. So they never know and cant click it. muahahaha

    When I update my page I will be changes to geobytes if I can figure it out tho, thanks apekillape. I will prolly be messaging you too cuz I may not be able to figure it out since I use iweb, unless I can find a tutorial on sql or something.

    Thanks again
    =^..^=
     
  10. blackhatnoob

    blackhatnoob Junior Member

    Joined:
    Nov 9, 2008
    Messages:
    173
    Likes Received:
    20
    You can also use php curl to plug in the ip into a place like ip-adress.com and then grab the country/city.
     
    • Thanks Thanks x 1
  11. luckykittypurrpurr

    luckykittypurrpurr Registered Member

    Joined:
    Aug 20, 2008
    Messages:
    72
    Likes Received:
    48
    I'm not really "that cheap" if the webpage I made was going to generate 200k then totally I would bust out my wallet paying a lot more than 20, but the site i made is just 1 page that pretty much forwards them to my aff site. this isn't going to generate loads and havent even tested the method I am using with it, so if my method works and I start generating good money then I don't mind paying for it.

    I just wanna see if this site is gonna even work first.