# How to detect website visitors location without knowing them?

**URL:** <https://onehack.st/t/how-to-detect-website-visitors-location-without-knowing-them/136918>\
**Category:** Discussion & Solutions\
**Tags:** solved, privacy\
**Created:** [October 8, 2020, 7:11am UTC](https://onehack.st/t/how-to-detect-website-visitors-location-without-knowing-them/136918 "2020-10-08T07:11:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mustafa\_Kapur](https://onehack.st/user_avatar/onehack.st/mustafa_kapur/32/50997_2.png) [@Mustafa\_Kapur](https://onehack.st/u/Mustafa_Kapur)\
**Post date:** [October 8, 2020, 7:11am UTC](https://onehack.st/t/how-to-detect-website-visitors-location-without-knowing-them/136918/1 "2020-10-08T07:11:43Z")

</div>

I want to know how big tech companies detect website visitors locations?  
From Which side they have implemented ? Frontend or backend ?  
Is there any tool or some bunch of code ?

If anybody knows please describe yourself.🙏

I have to implement in project.

Your answer is very important for me.

---

<div class="post-metadata">

**Author:** ![den](https://onehack.st/letter_avatar_proxy/v4/letter/d/ce7236/32.png) [@den](https://onehack.st/u/den)\
**Post date:** [October 8, 2020, 7:44am UTC](https://onehack.st/t/how-to-detect-website-visitors-location-without-knowing-them/136918/2 "2020-10-08T07:44:49Z")

</div>

You can try this

> **[Free Live Traffic Feed](https://livetrafficfeed.com/)**
>
> Free Live Traffic Feed is a tracking tool that tracks live visitors counter to a blog or website in real time. No cookies or bots data. A simple real time track website visitors and website traffic counter.

---

<div class="post-metadata">

**Author:** ![daominhsangvn](https://onehack.st/user_avatar/onehack.st/daominhsangvn/32/43495_2.png) [@daominhsangvn](https://onehack.st/u/daominhsangvn)\
**Post date:** [October 8, 2020, 9:02am UTC](https://onehack.st/t/how-to-detect-website-visitors-location-without-knowing-them/136918/3 "2020-10-08T09:02:31Z")

</div>

You can use user’s IP to detect their location, it’s not a exactly location but you may know which city.

---

<div class="post-metadata">

**Author:** ![prabha\_coder](https://onehack.st/user_avatar/onehack.st/prabha_coder/32/52939_2.png) [@prabha\_coder](https://onehack.st/u/prabha_coder)\
**Post date:** [October 8, 2020, 9:55am UTC](https://onehack.st/t/how-to-detect-website-visitors-location-without-knowing-them/136918/4 "2020-10-08T09:55:47Z")

</div>

Hello 1Hacker’s,

I’m using this website for collecting analytics for my site which has collection of IP address ,Location, Device Identity and many more. Check the features and you love it.

👉[IP Logger](https://iplogger.org) 👈

---

<div class="post-metadata">

**Author:** ![Mustafa\_Kapur](https://onehack.st/user_avatar/onehack.st/mustafa_kapur/32/50997_2.png) [@Mustafa\_Kapur](https://onehack.st/u/Mustafa_Kapur)\
**Post date:** [October 8, 2020, 7:55pm UTC](https://onehack.st/t/how-to-detect-website-visitors-location-without-knowing-them/136918/5 "2020-10-08T19:55:21Z")

</div>

Thanks to all 🙏 . But don’t want to analyze visitors. I want to detect the visitors location and show some content according to the location

---

<div class="post-metadata">

**Author:** ![prabha\_coder](https://onehack.st/user_avatar/onehack.st/prabha_coder/32/52939_2.png) [@prabha\_coder](https://onehack.st/u/prabha_coder)\
**Post date:** [October 10, 2020, 8:40pm UTC](https://onehack.st/t/how-to-detect-website-visitors-location-without-knowing-them/136918/6 "2020-10-10T20:40:36Z")

</div>

Dear [Mustafa\_Kapur](https://onehack.st/u/Mustafa_Kapur)

See this site [Geo Location API](https://ipstack.com). Use ajax method. I hope this will help you.

---

<div class="post-metadata">

**Author:** ![jadinerky](https://onehack.st/user_avatar/onehack.st/jadinerky/32/70325_2.png) [@jadinerky](https://onehack.st/u/jadinerky)\
**Post date:** [October 11, 2020, 11:31pm UTC](https://onehack.st/t/how-to-detect-website-visitors-location-without-knowing-them/136918/7 "2020-10-11T23:31:58Z")

</div>

@Mustafa_Kapur you can ofc use backend code to detect the IP and using it you can get all other information ( i wouldn’t suggest using any frontend in this cuz users can play as they want in fronted and you should never trust them, the backend is guaranteed, I would give you PHP code or nodeJS code, but I’m not sure you’re a programmer or you just want a small solution )  
anyway, you can still use this [https://ipstack.com/](https://ipstack.com/) as @prabha_coder but I wouldn’t trust in javascript cuz users can disable it …  
you’re better to use cURL in PHP, they have a full step by step documentation over [https://ipstack.com/documentation](https://ipstack.com/documentation)
