Bienvenido a datoweb.com!! En este foro podrás encontrar ayuda sobre diseño y desarrollo web en general. Si quieres formar parte de esta comunidad para pedir ayuda o colaborar ayudando a otros usuarios del foro solo tienes que registrarte desde el siguiente enlace: Registrarse en el Foro

Como localizar un ip de un visitante o de donde proviene

Hola amigos en este post os enseñare un script para localizar una ip de su visitante de donde es
osea que localizaremos su ip y apartir de la ip nos podrara su ciudad pais o codigo postal
segun como lo configureis
este script se llama geoiploc

geoiploc.php
<?php

/*

+-----------------------------------------------------------------+
|   Created by Chirag Mehta - http://chir.ag/projects/geoiploc    |
|-----------------------------------------------------------------|
|                 For PHP GeoIPLocation Library                   |
+-----------------------------------------------------------------+

All the functions, data conversion etc. have been written specifically
for the PHP GeoIPLocation Library by Chirag Mehta.

GeoIPLoc code & data last updated: Mon Jan 7 2:04:01 PST 2013.
Note: This library is updated automatically once a day.

This library is released under the: Creative Commons License: Attribution 2.5
http://creativecommons.org/licenses/by/2.5/

The IP Country data is from: http://Software77.net (A Webnet77.com Company)

Please review the following copy of license for more information:

# INFORMATION AND NOTES ON IpToCountry.csv.gz
# ===========================================
#
# ------------------------------------------------------------------------------
# LICENSE
# =======
# This database is provided FREE under the terms of the
# GENERAL PUBLIC LICENSE, June 1991
# ------------------------------------------------------------------------------
#
# Generator         : ip.pl on http://Software77.net (A Webnet77.com Company)
# Software Author   : BRM
# Contact           : http://Webnet77.com/contact.html
# Download          : http://software77.net/cgi-bin/ip-country/geo-ip.pl
#
# IMPORTANT NOTES
# ===============
# If you discover a bug in the database, please let us know at the contact
# address above.
#
# What this database is
# =====================
#
# This Database is operated and maintained by Webnet77 and updated every 1
# days and represents [almost] all  2 billion IP numbers [approximately] in use on the
# internet today.
#
# This Database is automatically reconstituted every 1 days by special
# software running on our servers. The bottom of the main page shows how long ago
# it was updated as well as giving an indication of when the next update will
# take place.
# ------------------------------------------------------------------------------
#
# FILE FORMAT
# ===========
#
#      --------------------------------------------------------------
#      All lines beginning with either "#" or whitespace are comments
#      --------------------------------------------------------------
#
# IP FROM      IP TO        REGISTRY  ASSIGNED   CTRY CNTRY COUNTRY
# "1346797568","1346801663","ripencc","20010601","IL","ISR","ISRAEL"
#
# IP FROM   : Numerical representation of IP address.
#             Example: (from Right to Left)
#             1.2.3.4 = 4 + (3 * 256) + (2 * 256 * 256) + (1 * 256 * 256 * 256)
#             is 4 + 768 + 13,1072 + 16,777,216 = 16,909,060
#
# REGISTRY  : apcnic, arin, lacnic, ripencc and afrinic
#             Also included as of April 22, 2005 are the IANA IETF Reserved
#             address numbers. These are important since any source claiming
#             to be from one of these IP's must be spoofed.
#
# ASSIGNED  : The date this IP or block was assigned. (In Epoch seconds)
#             NOTE: Where the allocation or assignment has been transferred from
#                   one registry to another, the date represents the date of first
#                   assignment or allocation as received in from the original RIR.
#                   It is noted that where records do not show a date of first
#                   assignment, the date is given as "0".
#
# CTRY      : 2 character international country code
#             NOTE: ISO 3166 2-letter code of the organisation to which the
#             allocation or assignment was made, and the enumerated variances of:
#           AP - non-specific Asia-Pacific location
#           CS - Serbia and Montenegro (Formally Czechoslovakia)
#           YU - Serbia and Montenegro (Formally Yugoslavia) (Being phased out)
#           EU - non-specific European Union location
#           FX - France, Metropolitan
#           PS - Palestinian Territory, Occupied
#           UK - United Kingdom (standard says GB)
#         * ZZ - IETF RESERVED address space.
#
#             These values are not defined in ISO 3166 but are widely used.
#           * IANA Reserved Address space
#
# CNTRY     : Country Abbreviation. Usually 3 Character representation
#
# COUNTRY   : Country Name. Full Country Name.
#
# Countries falling under AFRINIC now show correctly (June 27, 2005)
# ------------------------------------------------------------------------------
# THIS DATABSE IS PROVIDED WITHOUT ANY WARRANTY WHATSOEVER. USE ENTIRELY AT YOUR
# OWN RISK. NO LIABILITY WHATSOEVER, OF ANY NATURE, WILL BE ASSUMEND BY
# Webnet77.com, IT'S DISTRIBUTORS, RESELLERS OR AGENTS. SHOULD THE DATABASE
# PROVE TO BE FAULTY, CAUSE YOU LOSS OR OTHER FINANCIAL DAMAGE, YOU AGREE YOU
# HAVE NO CLAIM AGINST Webnet77.com IT'S DISTRIBUTORS, RESELLERS OR AGENTS. IF
# YOU DO NOT ACCEPT THESE TERMS YOU MAY NOT USE THIS DATABASE.
# ------------------------------------------------------------------------------
#
#                            © 2002-12:08:03 Webnet77.com
#
#
#
#

*/


/* usage:

     $cCode = getCountryFromIP($ip);           // returns country code by default
     $cCode = getCountryFromIP($ip, "code");   // you can specify code - optional
     $cAbbr = getCountryFromIP($ip, "AbBr");   // returns country abbreviation - case insensitive
     $cName = getCountryFromIP($ip, " NamE "); // full name of country - spaces are trimmed

     $ip must be of the form "192.168.1.100"
     $type can be "code", "abbr", "name", or omitted

  ip cacheing:

     this function has a simple cache that works pretty well when you are calling
     getCountryFromIP thousands of times in the same script and IPs are repeated e.g.
     while parsing access logs. Without caching, each IP would be searched everytime
     you called this function. The only time caching would slow down performance
     is if you have 100k+ unique IP addresses. But then you should use a dedicated
     box for GeoLocation anyway and of course feel free to optimize this script.
*/

function getCountryFromIP($ip, $type = "code")
{
  global $geoipaddrfrom, $geoipaddrupto;
  global $geoipctry, $geoipcntry, $geoipcountry;
  global $geoipcount, $geoipcache;

  if(strpos($ip, ".") === false)
    return "";

  $ip = substr("0000000000" . sprintf("%u", ip2long($ip)), -10);
  $ipn = base64_encode($ip);

  if(isset($geoipcache[$ipn])) // search in cache
  {
    $ct = $geoipcache[$ipn];
  }
  else // search in IP Address array
  {
    $from = 0;
    $upto = $geoipcount;
    $ct   = "ZZ"; // default: Reserved or Not Found

    // simple binary search within the array for given text-string within IP range
    while($upto > $from)
    {
      $idx = $from + intval(($upto - $from)/2);
      $loip = substr("0000000000" . $geoipaddrfrom[$idx], -10);
      $hiip = substr("0000000000" . $geoipaddrupto[$idx], -10);

      if($loip <= $ip && $hiip >= $ip)
      {
        $ct = $geoipctry[$idx];
        break;
      }
      else if($loip > $ip)
      {
        if($upto == $idx)
          break;
        $upto = $idx;
      }
      else if($hiip < $ip)
      {
        if($from == $idx)
          break;
        $from = $idx;
      }
    }

    // cache the country code
    $geoipcache[$ipn] = $ct;
  }

  $type = trim(strtolower($type));

  if($type == "abbr")
    $ct = $geoipcntry[$ct];
  else if($type == "name")
    $ct = $geoipcountry[$ct];

  return $ct;
}

$GLOBALS['geoipaddrfrom'] = array('0','16777216','16777472','16778240','16779264','16781312','16785408','16793600','16809984','16842752','16843008','16843264','16859136','16875520','16908288','16909056','16909312','16941056','16973824','17039360','17039616','17072128','17104896','17170432','17301504','17367040','17432576','17435136','17435392','17465344','17498112','17563648','17825792','18087936','18153472','18219008','18350080','18874368','18939904','19005440','19136512','19202048','19267584','19398656','19726336','19791872','19922944','20185088','20447232','20971520','21102592','21233664','21495808','22020096','23068672','24117248','24379392','24641536','27262976','28311552','28442624','28540928','28573696',
  '28966912','29097984','29884416','29949952','30015488','30408704','33554432','34603008','35127296','35651584','36700160','36962304','37224448','37486592','37748736','38273024','38797312','39059456','39321600','39583744','39845888','40370176','40894464','41418752','41943040','42205184','42467328','42991616','43253760','43515904','43778048','44040192','45088768','46137344','46661632','47710208','48234496','49283072','49807360','50331648','83886080','83951616','83959808','83961856','83963904','83965952','83968000','83976192','83978240','83980288','83982336','84017152','84021248','84023296','84025344','84033536','84037632','84039680','84041728','84049920','84082688','84148224','84410368','84443136','84451328','84457472','84459520','84471808','84473856','84475904','84545536','84549632','84551680','84557824','84574208','84576256','84582400','84590592','84592640','84594688','84598784','84600832','84602880','84606976','84609024','84615168','84617216','84619264','84621312','84623360','84627456','84631552','84639744','84672512','84934656','85196800','85262336','85327872','85360640','85362688','85364736','85366784','85368832','85377024','85385216','85387264','85389312','85391360','85393408','85401600','85403648','85405696','85407744','85409792','85417984','85422080','85424128','85426176','85458944','85721088','85723136','85725184','85729280','85731328','85733376','85737472','85753856','85770240','85786624','85852160','86016000','86018048','86020096','86022144','86024192','86026240','86028288','86030336','86032384','86048768','86114304','86147072','86155264','86157312','86159360','86161408','86163456','86171648','86173696','86175744','86177792','86179840','86224896','86226944','86228992','86231040','86233088','86235136','86237184','86245376','86376448','86409216','86441984','86474752','86482944','86484992','86487040','86489088','86491136','86493184','86495232','86497280','86499328','86503424','86505472','86507520',
  '86573056','86638592','86671360','86673408','86675456','86677504','86679552','86687744','86695936','86704128','86720512','86736896','86745088','86753280','86761472','86763520','86765568','86767616','86769664','86773760','86777856','86779904','86786048','86788096','86790144','86794240','86798336','86802432','86804480','86806528','86810624','86812672','86814720','86816768','86818816','86822912','86824960','86827008','86831104','86833152','86835200','86837248','86839296','86849536','86851584','86867968','86872064','86874112','86876160','86880256','86882304','86884352','86900736','87031808','87293952','87359488','87361536','87363584','87367680','87375872','87384064','87386112','87388160','87390208','87392256','87425024','87556096','87558144','87560192','87562240','87564288','87566336','87568384','87570432','87572480','87588864','87590912','87592960','87597056','87599104','87601152','87621632','87623680','87625728','87627776','87629824','87631872','87633920','87635968','87638016','87640064','87642112','87646208','87654400','87670784',
  '87672832','87674880','87676928','87678976','87681024','87683072','87685120','87687168','87752704','87818240','87883776','87885824','87889920','87891968','87900160','87902208','87904256','87906304','87908352','87912448','87914496','87916544','87932928','87934976','87939072','87941120','87943168','87945216','87947264','87949312','87982080','88014848','88016896','88018944','88020992','88023040','88031232','88047616','88049664','88051712','88053760','88055808','88057856','88059904','88061952','88064000','88080384','88604672','88866816','88932352','88940544','88948736','88965120','88997888','89063424','89079808','89096192','89128960','89260032','89325568','89327616','89329664','89331712','89333760','89337856','89339904','89341952','89350144','89352192','89354240','89356288','89358336','89374720','89382912','89384960','89387008','89391104','90439680','90456064','90472448','90476544','90478592','90480640','90482688','90484736','90488832','90497024','90499072','90501120','90503168','90505216','90570752','90578944','90583040','90587136','90589184',
  '90591232','90595328','90603520','90605568','90607616','90609664','90611712','90613760','90615808','90617856','90619904','90636288','90701824','90705920','90707968','90710016','90718208','90720256','90722304','90724352','90726400','90728448','90730496','90734592','90736640','90738688','90740736','90742784','90750976','90753024','90755072','90757120','90759168','90761216','90763264','90765312','90767360','90832896','90898432','90963968','91226112','92274688','92536832','92602368','92604416','92606464','92608512','92610560','92612608','92614656','92635136','92643328','92645376','92651520','92659712','92663808','92665856','92667904','92669952','92672000','92674048','92676096','92680192','92684288','92688384','92690432','92692480','92694528','92696576','92698624','92700672','92717056','92719104','92721152','92723200','92725248','92733440','92798976','93323264','93335552','93339648','93343744','93347840','93356032','93358080','93360128','93362176','93364224','93368320','93370368','93372416','93388800','93415424',
  '93417472','93419520','93421568','93425664','93427712','93429760','93431808','93433856','93437952','93454336','93585408','93626368','93634560','93650944','93652992','93655040','93667328','93675520','93679616','93681664','93683712','93685760','93687808','93689856','93691904','93693952','93696000','93700096','93702144','93704192','93708288','93712384','93714432','93749248','93753344','93755392','93765632','93782016','93847552','93880320','93888512','93890560','93892608','93894656','93896704','93904896','93906944','93908992','93911040','93913088','93929472','93939712','93941760','93945856','93962240','93972480','93974528','93976576','93978624','94175232','94191616','94193664','94195712','94199808','94208000','94240768','94257152','94261248','94263296','94265344','94273536','94289920','94291968','94294016','94296064','94298112','94300160','94302208','94306304','94308352','94310400','94312448','94314496','94316544','94318592','94320640','94330880','94337024','94339072',
  '94355456','94357504','94361600','94363648','94365696','94367744','94369792','94371840','94502912','94568448','94633984','94896128','95158272','95166464','95168512','95170560','95174656','95191040','95195136','95197184','95203328','95205376','95207424','95211520','95213568','95215616','95354880','95363072','95365120','95367168','95369216','95371264','95375360','95377408','95387648','95420416','95551488','95555584','95557632','95559680','95561728','95563776','95567872','95569920','95571968','95574016','95576064','95580160','95582208','95584256','95617024','95625216','95635456','95637504','95641600','95645696','95647744','95649792','95666176','95668224','95682560','95944704','96075776','96141312','96143360','96145408','96149504','96151552','96153600','96155648','96157696','96165888','96174080','96206848','96337920','96403456','96468992','96731136','96796672','96862208','96894976','96897024','96899072','96903168','96911360','96919552','96923648','96925696',
  '96927744','96960512','96964608','96968704','96972800','96974848','96985088','96987136','96989184','96993280','97001472','97009664','97058816','97091584','97189888','97255424','97320960','97386496','97419264','97435648','97437696','97439744','97443840','97445888','97447936','97452032','97517568','98566144','98697216','98701312','98705408','98707456','98709504','98711552','98713600','98732032','98734080','98736128','98738176','98740224','98742272','98744320','98746368','98762752','98893824','98959360','99090432','99614720','99876864','100139008','100204544','100237312','100245504','100247552','100249600','100253696','100261888','100270080','100302848','100311040','100313088','100315136','100319232','100327424','100329472','100331520','100335616','100401152','100532224','100564992','100573184','100575232','100577280','100579328','100581376','100589568','100597760','100614144','100630528','100632576','100634624','100636672','100638720','100646912','100663296','167772160','184549376','234881024',
  '234883072','234884096','234885120','234889216','234913792','234946560','234947584','234950656','234951680','234954752','234979328','235012096','235077632','235143168','235405312','235929600','236978176','241172480','241434624','241500160','241565696','241598464','241599488','241600512','241602560','241604608','241605632','241614848','241623040','241627136','241631232','243269632','243270656','243271680','243272704','243273728','243277824','243286016','243302400','243400704','243531776','243662848','243793920','243859456','243916800','243924992','243990528','244318208','245366784','247472128','247479296','247480320','247482368','247483392','247484416','247488512','247496704','247504896','247513088','247529472','247595008','247726080','247857152','247988224','248250368','248381440','248446976','248512512','249561088','251658240','386924544','387055616','387825664','387833856','402653184','404684800','405012480','405143552','405180416','405184512','405372928','405422080','405798912','405831680','405843968','405848064','405864448','405921792','405929984','405946368','405962752','405979136','406003712','406011904','406028288','406061056','406110208','406142976','406147072','406159360','406183936','406216704',
  '406241280','406274048','406290432','406298624','406306816','406323200','406388736','406454272','406847488','407408640','407609344','407613440','407617536','407633920','408420352','408502272','408518656','408535040','408551424','408719360','408723456','409255936','409272320','409337856','409370624','409534464','409567232','409731072','409862144','410124288','410189824','410648576','410714112','411164672','411172864','411303936',
  '411369472','411435008','411500544','411566080','411639808','411648000','411664384','411680768','411688960','411697152','411721728','411746304','411762688','411770880','411779072','411828224','411893760','411975680','411979776','411983872','412073984','412221440','412254208','412483584','412549120','412647424','412680192','412688384','412704768','412708864','412909568','412925952','412942336','412946432','412950528','412975104','413007872','413908992','413925376','415760384','416022528','416059392','416071680','416088064','416153600','416161792','416219136','416251904','416546816','416612352','416628736','416636928','416743424','416776192','417202176','417267712','417366016','417398784','417431552','417529856','417538048','417775616','417796096','417800192','417808384','417820672','417857536','417923072','418062336','418070528','418078720','418119680','418316288','418320384','418643968','418668544','418672640','418676736','418693120','418709504','418766848','418770944','418775040','418799616','419430400','436207616','452984832','452985856','452986880','452987904','452988928','452997120','453001216','453009408','453050368','453115904','453246976','453509120','455081984','455213056','455245824','455258112','455262208','455270400','455272448','455274496','455278592','455344128','456130560','456261632','456262656','456263680','456264704','456265728','456269824','456271872','456273920','456286208','456294400','456327168','456523776','456540160','456542208','456544256','456548352','456553472','456554496','456555520','456556544','456562688','456564736','456572928','456589312','456654848','457179136','458227712','459282432','459284480','459292672','459293696','459297792','459300864','459309056','459325440','459333632','459341824','459407360','459456512','459460608','459472896','459505664','459538432','459539456','459540480','459541504','459542528','459544576','459545600',
  '459548672','459550720','459554816','459571200','459735040','459800576','459866112','459931648','459964416','459980800','459983872','459984896','459986944','459988992','459997184','460062720','460128256','460136448','460144640','460152832','460154880','460155904','460156928','460158976','460161024','460193792','460210176','460214272','460218368','460224512','460226560','460259328','460261376','460262400','460263424','460267520','460275712','460278784','460279808','460283904','460292096','460300288','460312576','460320768','460324864','460341248','460343296','460344320','460345344','460349440','460351488','460356608','460357632','460423168','460439552','460451840','460453888','460454912','460455936','460488704','460505088','460521472','460554240','460587008','460591104','460593152','460595200','460596224','460598272','460599296','460601344','460602368','460603392','460718080','460722176','460726272','460734464','460865536','460931072','460933120','460935168','460937216','460938240','460939264','460940288','460941312','460942336','460943360','460945408','460947456','460980224','460981248','460983296','460984320','460988416','460994560','460996608','461008896','461012992','461045760','461047808','461049856','461050880','461051904','461053952','461062144','461078528','461094912','461099008','461100032','461101056','461102080','461103104','461111296','461127680','461131776','461135872','461144064','461209600','461225984','461227008','461228032','461229056','461230080','461234176','461242368','461258752','461279232','461281280','461282304','461283328','461287424','461307904','461357056','461369344','461373440','461504512','461570048','461572096','461573120','461574144','461578240','461586432','461602816','461619200','461623296','461625344','461626368','461627392','461633536','461635584','462422016','462487552','462553088','462618624','462635008','462651392','462684160','463470592','465043456',
  '467927040','468189184','468713472','469237760','469499904','469565440','469598208','469630976','469696512','469712896','469729280','469762048','520093696','520257536','520290304','520292352','520294400','520296448','520298496','520306688','520308736','520310784','520312832','520314880','520318976','520323072','520325120','520327168','520329216','520331264','520339456','520343552','520355840','520421376','520486912','520503296','520505344','520507392','520511488','520519680','520552448','520554496','520556544','520560640','520562688','520564736','520566784','520568832','520589312','520593408','520595456','520597504','520601600','520609792','520613888','520615936','520617984','520683520','520749056','520753152','520757248','520761344','520763392','520765440','520781824','520822784','520824832','520826880','520828928','520830976','520847360','520880128','520882176','520884224','520888320','520896512','520898560','520912896','520945664','520947712','520949760','520951808','520953856','520962048','520978432','520980480','520982528','520984576',
  '520986624','520988672','520990720','520994816','521011200','521076736','521078784','521080832','521082880','521084928','521093120','521095168','521097216','521101312','521103360','521105408','521107456','521109504','521142272','521404416','521535488','521539584','521541632','521543680','521545728','521547776','521551872','521553920','521555968','521558016','521560064','521562112','521564160','521566208','521568256','521601024','521666560','521668608','521670656','521672704','521674752','521676800','521678848','521680896','521682944','521687040','521689088','521691136','521693184','521695232','521697280','521699328','521701376','521703424','521705472','521707520','521709568','521711616','521713664','521715712','521717760','521719808','521721856','521723904','521725952','521728000','521732096','521736192','521738240','521740288','521742336','521746432','521748480','521750528','521752576','521754624','521756672','521758720','521760768','521762816','521764864','521766912','521768960','521771008','521773056','521775104','521777152','521779200','521783296','521785344','521787392','521789440','521791488','521793536','521795584',
  '521797632','521928704','521945088','521953280','521961472','521969664','521977856','521986048','521994240','522002432','522010624','522018816','522027008','522059776','522125312','522133504','522135552','522137600','522141696','522143744','522145792','522147840','522149888','522158080','522166272','522168320','522170368','522174464','522178560','522180608','522182656','522190848','522715136','522717184','522719232','522721280','522741760','522743808','522747904','522780672','522782720','522784768','522786816','522788864','522792960','522795008','522797056','522801152','522803200','522805248','522807296','522811392','522813440','522815488','522819584','522821632','522823680','522827776','522831872','522833920','522835968','522838016','522840064','522842112','522846208','522854400','522858496','522866688','522870784','522874880','522878976','522887168','522895360','522911744','522960896','522969088','522977280','522981376','522985472','522989568',
  '522993664','522997760','523001856','523005952','523010048','523014144','523018240','523022336','523026432','523030528','523034624','523038720','523042816','523075584','523108352','523173888','523182080','523190272','523192320','523194368','523196416','523198464','523202560','523223040','523225088','523227136','523229184','523231232','523239424','523763712','524025856','524288000','528482304','528490496','528498688','528515072','528523264','528531456','528539648','528547840','528564224','528580608','528588800','528596992','528605184','528613376','528637952','528642048','528654336','528656384','528658432','528662528','528664576','528666624','528668672','528670720','528674816','528676864','528678912','528680960','528683008','528689152','528691200','528695296','528699392','528703488','528715776','528719872','528721920','528723968','528726016','528736256','528740352','528742400','528744448','528748544','528760832','528762880','528764928','528769024','528793600','528795648','528797696','528809984','528812032','528814080','528816128','528818176','528836608','528838656','528840704','528842752','528859136','528861184','528863232','528867328','528887808','528891904','528900096','528902144','528908288','528926720','528928768','528930816','528932864','528941056','528943104','528945152','528949248','528973824','528982016','528986112','528988160','528990208','528994304','528996352','528998400','529002496','529006592','529268736','529530880','529596416','529661952','529727488','529793024','529858560','529924096','529989632','530055168','530120704','530186240','530251776','530317312','530579456','530710528','530841600','530972672','531103744','531169280','531177472','531179520','531181568','531183616','531185664','531193856','531195904','531197952','531200000','531202048','531234816','531236864','531238912','531240960','531243008','531245056','531247104','531251200','531259392','531261440','531263488','531265536','531267584','531275776','531277824','531279872','531281920','531283968','531292160','531333120',
  '531335168','531337216','531339264','531341312','531349504','531351552','531355648','531357696','531361792','531365888','531398656','531400704','531402752','531404800','531406848','531408896','531415040','531423232','531425280','531427328','531431424','531496960','531628032','531660800','531693568','531695616','531697664','531699712','531701760','531703808','531705856','531707904','531709952','531718144','531720192','531722240','531724288','531726336','531759104','531890176','532021248','532152320','532168704','532185088','532201472','532221952','532224000','532226048','532234240','532242432','532244480','532246528','532250624','532283392','532291584','532293632','532295680','532297728','532303872','532305920','532307968','532310016','532312064','532314112','532316160','532324352','532328448','532330496','532332544','532340736','532348928','532365312','532373504','532375552','532377600','532381696','532414464','532676608','532692992','532701184','532703232','532705280','532709376','532725760','532729856','532731904','532733952','532736000','532738048','532740096','532742144','532746240','532750336',
  '532752384','532754432','532756480','532758528','532762624','532766720','532768768','532770816','532772864','532774912','532779008','532783104','532785152','532787200','532789248','532791296','532793344','532795392','532797440','532799488','532801536','532803584','532805632','532807680','533200896','533233664','533250048','533254144','533256192','533262336','533264384','533266432','533331968','533397504','533463040','533479424','533481472','533483520','533485568','533487616','533491712','533495808','533504000','533512192','533528576','533594112','533659648','533676032','533680128','533682176','533684224','533692416','533725184','533807104','533811200','533815296','533819392','533823488','533825536','533831680','533835776','533837824','533839872','533856256','533858304','533862400','533864448','533889024','533891072','533893120','533895168','533897216','533899264','533901312','533905408','533913600','533915648','533919744','533921792','533954560','533962752','533964800','533966848','533968896','533970944','533987328','534118400','534151168','534183936','534249472','534253568','534257664','534259712','534261760',
  '534263808','534265856','534282240','534284288','534286336','534288384','534290432','534296576','534298624','534306816','534308864','534310912','534315008','534347776','534355968','534364160','534366208','534368256','534370304','534372352','534374400','534376448','534378496','534380544','534511616','534544384','534546432','534548480','534550528','534560768','534609920','534642688','534646784','534648832','534650880','534652928','534654976','534663168','534675456','534691840','534693888','534700032','534708224','534740992','534749184','534753280','534757376','534761472','534765568','534767616','534769664','534773760','536870912','603979776','603980800','603981824','604110848','604241920','604504064','605028352','606412800','606413824','606414336','606414592','606420992','606437376','606470144','606601216','607322112','607387648','607649792','608174080','610271232','618659840','619708416','620232704','620494848',
  '620625920','620756992','620759040','620763136','620765184','620773376','620775424','620777472','620781568','620783616','620785664','620787712','620789760','620822528','620845056','620849152','620851200','620855296','620859392','620861440','620863488','620865536','620867584','620869632','620871680','620879872','620881920','620888064','621019136','621150208','621215744','621281280','621314048','621318144','621322240','621330432','621346816','621381632','621383680','621387776','621389824','621391872','621393920','621395968','621398016','621400064','621402112','621404160','621408256','621410304','621412352','621445120','621805568','621813760','621821952','621824000','621826048','621828096','621830144','621838336','621871104','621903872','621912064','621916160','621918208','621920256','621924352','621928448','621932544','621934592','621936640','621971456','621973504','621975552','621977600','621981696','621983744','621985792','621993984','621998080','622000128','622004224','622006272','622008320','622010368','622018560','622020608','622022656',
  '622026752','622028800','622030848','622034944','622067712','622329856','622395392','622405632','622407680','622409728','622411776','622413824','622415872','622417920','622419968','622428160','622460928','622477312','622479360','622481408','622483456','622485504','622487552','622489600','622493696','622497792','622499840','622501888','622503936','622505984','622510080','622512128','622514176','622518272','622520320','622522368','622524416','622526464','622592000','622624768','622626816','622630912','622632960','622641152','622657536','622690304','622723072','622854144','622866432','622868480','622870528','622874624','622878720','622880768','622882816','622886912','622919680','622985216','622993408','622997504','623001600','623003648','623005696','623009792','623017984','623050752','623052800','623054848','623058944','623067136','623069184','623071232','623073280','623075328','623077376','623083520','623116288','623378432','623509504','623640576','623642624','623644672','623648768','623650816','623652864','623654912','623656960','623673344','623689728','623706112','623771648','623775744','623777792','623779840','623783936','623788032','623790080','623792128','623794176','623796224','623798272','623800320','623804416','623806464','623808512','623810560','623812608','623820800','623822848','623824896','623826944','623837184','623902720','623919104','623935488','623960064','623962112','623964160','623966208','623968256','624001024','624005120','624007168','624009216','624025600','624027648','624029696','624033792','624164864','624427008','624492544','624558080','624562176','624564224','624566272','624568320','624570368','624574464','624590848','624689152','624691200','624693248','624695296','624697344','624699392','624701440','624705536','624721920','624723968','624726016','624728064','624730112','624732160','624734208','624736256','624738304','624740352','624742400','624746496','624754688','624787456','624791552','624795648','624799744','624801792','624803840','624812032','624814080','624816128','624818176','624820224','624885760','624918528','624951296','625475584','625483776','625485824','625487872','625491968','625500160','625504256','625506304','625508352','625512448','625514496',
  '625516544','625518592','625520640','625522688','625524736','625541120','625606656','625672192','625674240','625676288','625680384','625688576','625704960','625707008','625709056','625711104','625713152','625721344','625725440','625727488','625729536','625731584','625733632','625735680','625737728','625770496','625786880','625795072','625803264','625811456','625815552','625817600','625819648','625823744','625827840','625829888','625831936','625836032','625838080','625840128','625842176','625844224','625846272','625848320','625850368','625852416','625854464','625856512','625860608','625868800','625999872','627048448','627113984','627179520','627212288','627216384','627218432','627220480','627228672','627230720','627232768','627236864','627238912','627240960','627245056','627277824','627294208','627296256','627298304','627300352','627302400','627572736','627834880','627965952','628006912','628015104','628017152','628019200','628021248','628023296','628029440','628031488','628097024','628230144','628232192','628236288','628244480','628246528','628248576','628250624','628252672','628260864','628277248','628293632',
  '628359168','628621312','628686848','628752384','628785152','628787200','628789248','628791296','628793344','628801536','628803584','628805632','628807680','628809728','628813824','628815872','628817920','628834304','628842496','628844544','628846592','628848640','628850688','628867072','628869120','628871168','628873216','628875264','628877312','628879360','628881408','628883456','629145600','629178368','629180416','629182464','629184512','629188608','629190656','629192704','629194752','629196800','629198848','629202944','629207040','629211136','629276672','629293056','629309440','629313536','629315584','629317632','629325824','629327872','629329920','629331968','629334016','629338112','629340160','629342208','629374976','629387264','629389312','629391360','629399552','629401600','629405696','629407744','629669888','629735424','629800960','629866496','629882880','629884928','629886976','629889024','629891072','629895168','629897216','629901312','629903360','629905408','629907456','629915648','629983232','629985280','629987328','629989376','629991424','629993472','629997568','630063104',
  '630128640','630130688','630136832','630138880','630145024','630147072','630149120','630151168','630153216','630157312','630159360','630161408','630163456','630165504','630167552','630169600','630173696','630177792','630194176','630456320','630489088','630491136','630493184','630495232','630497280','630499328','630501376','630503424','630509568','630511616','630513664','630515712','630517760','630519808','630521856','630587392','630718464','630720512','630722560','630726656','630732800','630734848','630736896','630738944','630743040','630751232','630759424','630767616','630784000','630802432','630804480','630806528','630808576','630816768','630833152','630849536','630980608','631046144','631048192','631050240','631054336','631056384','631058432','631060480','631062528','631078912','631080960','631083008','631085056','631087104','631095296','631097344','631099392','631103488','631105536','631107584','631109632','631111680','631177216','631242752','632291328','632815616','632946688','633077760','633094144','633098240','633100288','633102336','633110528','633143296','633208832','633241600',
  '633274368','633290752','633298944','633307136','633339904','633602048','633864192','633880576','633884672','633886720','633888768','633890816','633892864','633894912','633896960','633929728','633997312','633999360','634001408','634003456','634007552','634009600','634011648','634028032','634060800','634068992','634071040','634073088','634075136','634077184','634093568','634109952','634112000','634114048','634116096','634118144','634122240','634124288','634126336','634191872','634193920','634195968','634198016','634200064','634202112','634204160','634206208','634208256','634216448','634220544','634222592','634224640','634388480','634396672','634398720','634400768','634402816','634404864','634408960','634411008','634413056','634415104','634417152','634419200','634421248','634454016','634486784','634494976','634497024','634499072','634503168','634505216','634507264','634511360','634517504','634519552','634650624','634912768','635043840','635076608','635092992','635097088','635101184','635103232','635105280','635107328','635109376','635174912','635183104','635185152','635187200','635191296','635195392','635197440',
  '635203584','635207680','635211776','635213824','635217920','635219968','635224064','635240448','635256832','635273216','635281408','635285504','635287552','635289600','635291648','635293696','635295744','635297792','635299840','635301888','635305984','635437056','635502592','635568128','635699200','635715584','635717632','635719680','635723776','635725824','635727872','635729920','635748352','635764736','635830272','635842560','635846656','635854848','635856896','635858944','635860992','635863040','635895808','635961344','635994112','636026880','636043264','636047360','636049408','636051456','636055552','636057600','636059648','636092416','636157952','636160000','636162048','636166144','636168192','636170240','636174336','636176384','636178432','636180480','636182528','636186624','636188672','636190720','636223488','636485632','636747776','636780544','636813312','636878848','636944384','636952576','636956672','636958720','636960768','636968960','636975104','636977152','637140992','637206528','637239296','637272064','637276160','637278208','637288448','637296640','637298688','637300736',
  '637302784','637304832','637313024','637317120','637319168','637321216','637323264','637325312','637327360','637329408','637337600','637403136','637534208','654311424','654311680','654311936','654376960','654442496','654573568','654835712','655360000','656408576','658505728','660602880','661651456','662700032','666894336','671088640','687865856','689963008','691011584','691617792','691621888','691625984','691630080','691631104','691632128','691633152','691634176','691650560','691666944','691732480','691798016','691863552','691994624','692011008','692027392','692035584','692043776','692060160','692191232','692207616','692240384','692256768','692273152','692289536','692305920','692322304','692453376','692486144','692518912','692551680','692584448','692600832','692609024','692617216','692625408','692641792','692649984','692658176','692666368','692674560','692682752','692690944','692707328','692715520','692719616','692723712','692727808','692731904','692736000','692740096','692744192','692748288','692752384','692756480','692760576','692768768','692772864','692776960','692781056','692785152','692789248','692793344','692797440','692801536','692805632','692809728','692813824','692817920','692822016','692826112','692830208','692834304','692838400','692842496','692846592','692848640','692850688','692852736','692854784','692856832','692858880','692860928','692862976','692869120','692871168','692877312','692879360','692881408','692883456','692885504','692887552','692889600','692891648','692893696','692895744','692897792','692905984','692908032','692910080','692912128','692914176','692916224','692918272','692920320','692922368','692924416','692928512','692930560','692932608','692934656','692936704','692940800','692942848','692944896','692946944','692948992','692951040','692953088','692955136','692957184','692959232','692961280','692963328','692965376','692967424','692968448','692969472','692971520','692973568','692975616','692977664','692978688','692979712','692981760','692982784','692983808','692984832','692987904','692988928','692989952','692992000',
  '692993024','692994048','692995072','692996096','692997120','692998144','692999168','693000192','693001216','693002240','693003264','693004288','693005312','693006336','693007360','693008384','693009408','693011456','693012480','693013504','693014528','693015552','693016576','693017600','693018624','693019648','693020672','693021696','693022720','693023744','693027840','693028864','693029888','693030912','693031936','693032960','693033984','693035008','693036032','6930
5
Puntos
3311
Visitas
1
Resp
Por fc2014 hace 114 meses
Experto
Respuesta #1
y el ejemplo + el codigo ese dado
esta aqui
<?
error_reporting(E_ALL & ~E_NOTICE);
include("geoiploc.php"); // Incluimos el Archivo bajado para localizar el pais
  if (empty($_POST['checkip'])) //Envio Solicitud?
  {
	$ip = $_SERVER["REMOTE_ADDR"]; //si llego desde otra ubicacion o con url directa, toma la IP del cliente
  }
  else
  {
	$ip = $_POST['checkip']; //si mando una IP desde la misma pagina
  }
?>  
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Identificación de Pais - El Código Fuente </title>
</head>
<body>
<table border="1" width="100%" align="center">
<tr>
<td colspan="2">Verificación de País usando la IP</td>
</tr>
<tr>
<td>La IP es: </td><td> <?php echo($ip); ?> </td>
</tr>
<tr>
<td>El Pais es : </td><td><?php echo(getCountryFromIP($ip));?></td>
</tr>
<tr>
<td>El Codigo del Pais : </td><td><?php echo(getCountryFromIP($ip, "code"));?></td>
</tr>
<tr>
<td>La Abreviacion del Pais es : </td><td><?php echo(getCountryFromIP($ip, "AbBr"));?></td>
</tr>
<tr>
<td>El Nombre del Pais : </td><td><?php echo(getCountryFromIP($ip, " NamE"));?></td>
</tr>
<tr>
<td>Ingrese una IP para verificar</td><td>
<FORM action="" method="post">
<INPUT type="text" id="checkip" name="checkip" value="<?php echo($ip); ?>">
<INPUT type="submit" value="Verificar">
    </P>
 </FORM>
</td>
</tr>
<tr>
</tr>
</table>
5
Puntos
Por fc2014 hace 114 meses
Experto
Compartir en facebook
Compartir en twitter
Compartir
Para comentar Inicia sesión o Registrate