根据IP查询地理位置API

折腾 90 字 840 阅

简言

对接百度IP查询接口,只能查询大致位置网络运营商,只能到市级。

接口

<?php
$ip = $_SERVER["REMOTE_ADDR"]; 
$se=json_decode(file_get_contents("http://opendata.baidu.com/api.php?query=".$ip."&co=&resource_id=6006&t=1433920989928&ie=utf8&oe=utf-8&format=json"),true);
echo $se["data"][0]["location"];
?>

浅谈

注:如需查询指定IP地理位置请将源码内

$_SERVER["REMOTE_ADDR"];替换为

$_GET["ip"];

方法

使用方法为:http://域名/文件名.php或者http://域名/文件名.php?ip=待查询IP

END

感谢各位的光临

祝大家中秋国庆快乐!

1311133670.jpeg

- THE END -
打赏 分享
评论 ( 81 )
OωO
  1. Oxiqkm

    cost of ivermectin 3mg tablets - ivermectin for humans for sale stromectol tablets for humans

    31分钟前 回复
  2. Sjhfvs

    viagra plus - Buy cheap viagra now viagra 800mg

    一天前 回复
  3. Xdkgkv

    order an essay online - buy a dissertation pay to do assignment

  4. Ubdpxa

    casino online games - real money online casino ocean casino online

  5. Dbdmbt

    stromectol cream - fda ivermectin ivermectin for covid 19

  6. Sogagc

    ivermectin 6mg tablet for lice - stromectol cost australia stromectol for human

  7. Jnbjvy

    tadalafil 5mg price uk - Buy now cialis cost of cialis 10 mg

    10月18日 回复
  8. Ixvrdd

    buy brand cialis canada - where to buy cialis where can i buy cialis tadalafil in edmonton

    10月17日 回复
  9. Gtolfe

    sildenafil tablet brand name - realsilpll.com sildenafil prescription nz

    10月16日 回复
  10. Puzesp

    pink viagra for women - buy viagra new hampshire sildenafil 50mg otc

    10月15日 回复
  11. casino online

    hello my lovely stopforumspam member

    Welcome to Grosvenor Casinos, where you can play a wide range of casino games, from slots to poker, blackjack, and roulette! There’s something for everyone here – become a member of the casino to have the best of online casino gaming. Our Sportbook offers a range of sports betting odds and is available for pre event or in play bets 24/7 and 365 days of the year. Whether you’re here for football tournaments or the latest betting odds for horse racing, Tennis, Golf, Cricket and even Rugby Union, you are covered.

    10月14日 回复
  12. Amuoja

    ivermectin lotion - ivermectin lotion cost ivermectin medicine

    10月13日 回复
  13. payday loans online

    hello my lovely stopforumspam member

    What are the Types of Loans in Ohio depending on the purpose
    Specific purpose payday loans in Ohio. Funds received in debt may be spent only for a specific purpose specified in the loan agreement.
    Non-purpose loan. The debtor may spend the money received at his discretion.
    Most popular specific purpose payday loans in Ohio are:

    House loan. The most common, of course, is a mortgage when the purchased property acts as collateral for a loan. Sometimes a youth loan is issued, with lighter conditions for debtors. Still quite common is a housing loan that does not imply purchased housing in the form of collateral.
    Car loan – payday loans in Ohio to a car or similar vehicle. The key is often the purchased goods, making the terms of the loan better. Also, loan conditions are improved: car insurance, life and health insurance of the borrower, and receiving a salary to the account of the creditor bank.
    Land loan. To purchase a plot for construction or agricultural activities.
    Consumer. For purchases in modern supermarkets, equipment stores, you can take a personal loan right at the point of sale. Often, specialists located there can contact the bank and get a regular or fast payday loans. Borrowed funds automatically pay for the goods, and the consultant explains when and how to re-pay the debt.
    Educational loan. It is issued to students, as well as to applicants who have passed the competition, to pay for tuition at universities, colleges, etc.
    Broker loan. For the circulation of securities, payday loans in Ohio are issued to an exchange broker, se-curities are purchased securities.
    Others. Objectives not related to those listed, but agreed and approved by the creditor.

    10月13日 回复
  14. Oezigo

    ivermectin humans - ivermectin buy ivermectin 50 mg

    10月12日 回复
  15. Neurontine

    cialis tadalafil precio

    10月12日 回复
  16. Estehe

    where to purchase tadalafil - discount cialis without prescription brand name cialis from canada

    10月11日 回复
  17. Qeagcs

    prednisone 475 - buying prednisone from canada prednisone in uk

    10月9日 回复
  18. Veltfieni
    Veltfieni
    10月8日 回复
  19. Lnyvum

    online pharmacy delivery - cialis 20 mg tablet cheap cialis usa

    10月8日 回复
  20. Psvnud

    sildenafil 20 mg brand name - vigrxps.com generic sildenafil usa

    10月7日 回复
  21. Nruxka

    ivermectin for people - topical stromectol cost ivermectin cost australia

    10月5日 回复
  22. where to buy prednisone 5mg

    Kamagra Apcalis

    10月5日 回复
  23. Jbhqup

    generic xenical alli - xenical rx xenical pret

    10月4日 回复
  24. Isknbd

    cenforce 120 mg online - cenforcep.com visalista 60

    10月3日 回复
  25. Intelut
    Intelut
    10月2日 回复
  26. offisee
    offisee
    10月2日 回复
  27. Gpwenz

    mylan hydroxychloroquine - plaquenil dosage 54 prednisone

    10月2日 回复
  28. Pafrze

    ivermectin rx - stromvd ivermectin tablet

    9月27日 回复
  29. peenotoog
    peenotoog
    9月26日 回复
  30. Tilange
    Tilange

    http://buypriligyhop.com/ - priligy generico

    9月26日 回复
  31. Lasix

    genuine cialis no prescription

    9月26日 回复
  32. Ozzieb

    buy an assignment - how to write a hiring letter my family essay writing

    9月25日 回复
  33. jimdofreewen

    We spent a lot of time at her home. Maybe so her mother could keep an eye on us. Mrs. Spencer made sure to be around, offering drinks, snacks, chit chat. I noticed that she was fairly young herself. Granted at my age, anyone over 25 was old, but she was probably mid-30s, divorced. If she was a indiction of how Carley would develop, maybe I should wait. Mrs. Spencer had fuller breasts and a nice butt. She appeared to be in great shape for her "advanced" age. I knew she was keeping an eye on me as much as I was on her and her younger daughter. Her eldest, Sharon was away at college at the time. With Mrs. Spencer around we mostly limited ourselves to holding hands and sneaking in a few light kisses. One day Mrs. Spencer caught us by surprise walking in as I'd slid my hand up from Carley's stomach to rub her right breast through her shirt. She didn't really need a bra yet, so I could feel her nipple, hard, through her shirt. Just this much contact had me hard also.

    https://sites.google.com/view/2krteTxbHLTMxF91 https://sites.google.com/view/QeqN99nZBNOAW7ks

    9月25日 回复
  34. Priligy

    Dapoxetina Prezzo

    9月24日 回复
  35. Donovb

    accutane 20 mg price uk - cheapest accutane generic 80 mg accutane

    9月24日 回复
  36. Cnntkh

    tadalafil professional - tadalapills.com tadalafil online canadian pharmacy

    9月23日 回复
  37. does plaquenil cause hair loss

    Low Cost 20mg Cialis

    9月23日 回复
  38. acouple
    acouple
    9月23日 回复
  39. Qkiowx

    sildenafil discount - sildenafil online canadian pharmacy sildenafil for women

    9月22日 回复
  40. Kytwni

    ivermectin malaria - ivermectin 3mg for lice ivermectin humans

    9月21日 回复
  41. Rmtvvj

    buy ivermectin 6mg - stromectol price usa stromectol price uk

    9月19日 回复
  42. entaisy
    entaisy
    9月19日 回复
  43. Zithromax

    Buy Celebrex No Prescription

    9月19日 回复
  44. Ueqptm

    cost of doxycycline prescription 100mg - generic prednisolone 5mg pill buying prednisolone 5mg online without prescription

    9月18日 回复
  45. Wkdvie

    where can i get cytotec pills - can i buy cytotec over the counter buy cytotec no prescription

    9月17日 回复
  46. sholype
    sholype

    http://buyplaquenilcv.com/ - order hydroxychloroquine

    9月17日 回复
  47. Easedia
    Easedia

    https://buyzithromaxinf.com/ - buying azithromycin online

    9月16日 回复
  48. coeriot
    coeriot
    9月16日 回复
  49. Gyzbka

    albuterol without prescription - ventolin price uk buy albuterol online

    9月15日 回复
  50. Ptptjl

    furosemide brand name in india - furosemide 20mg lasix with no prescription

    9月14日 回复
  51. Mihxkn

    prednisone cost canada - prednisone drug costs buy prednisone 10mg

    9月13日 回复
  52. Cascalm
    Cascalm

    https://buystromectolon.com/ - stromectol ivermectin

    9月13日 回复
  53. Pbazqr

    buy stromectol canada - purchase stromectol ivermectin ireland

    9月12日 回复
  54. Stromectol

    Propecia 6 Month Results

    9月11日 回复
  55. Jwpzvs

    online pharmacy bc - Cialis generic best price tadalafil online

    9月10日 回复
  56. buy cialis online reviews

    Antibiotic Online Mexico

    9月9日 回复
  57. female viagra generic name

    levitra generique arnaque

    9月9日 回复
  58. Ssiqks

    generic viagra pills online - Get viagra fast sildenafil pharmacy costs

    9月8日 回复
  59. Fkrkdy

    buy an essay cheap - write my essay fast edit letter

    9月7日 回复
  60. Hkhoxh

    methylprednisolone 32 mg tablets - lyrica 300 mg price in india lyrica 75mg

    9月6日 回复
  61. Dwwgym

    amoxicillin sale - where to buy amoxicilin 500 mg buy amoxicillin 500 mg online mexico

    9月4日 回复
  62. Vxoday

    accutane 20 mg price uk - isotretinoin for acne accutane 50mg

    9月3日 回复
  63. Dpbovt

    buy deltasone - buy prednisone over the counter prednisone rx

    9月2日 回复
  64. Propecia

    Disfunzione Erettile

    9月1日 回复
  65. Wzoadh

    stromectol price us - stromectol ivermectin

    9月1日 回复
  66. Sqhmnv

    vardenafil com - vardenafil order prescription levitra coupon

    8月30日 回复
  67. anowirway
    anowirway

    https://buytadalafshop.com/ - best place to buy cialis online forum

    8月30日 回复
  68. Sptqmp

    brand name cialis prices - tadalafil 20mg price in usa

    8月29日 回复
  69. saunTee
    saunTee

    http://buypropeciaon.com/ - propecia wiki

    8月29日 回复
  70. Dimrbn

    cheap viagra generic 100mg - how can i order viagra online

    8月28日 回复
  71. Huswld

    brand name neurontin price - neurontin 200 mg synthroid 0.0125 online

    8月26日 回复
  72. Kqfhaj

    doxycycline brand - doxycycline 100mg price south africa doxycycline 50 mg coupon

    8月25日 回复
  73. Oxyqfx

    how to order cytotec online - cytotec 200 canada cytotec 200 mcg price

    8月23日 回复
  74. Ieamfr

    ventolin purchase - ventolin cost uk ventolin generic price

    8月22日 回复
  75. Pmnhhc

    cost ivermectin - ivermectin 3 mg tablet dosage covid and ivermectin

    8月20日 回复
感谢打赏