# Is there any way to use visitor IP addresses in conditional logic?

**URL:** <https://forum.bubble.io/t/is-there-any-way-to-use-visitor-ip-addresses-in-conditional-logic/544>\
**Category:** Need help\
**Created:** [November 6, 2015, 5:53am UTC](https://forum.bubble.io/t/is-there-any-way-to-use-visitor-ip-addresses-in-conditional-logic/544 "2015-11-06T05:53:49Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![edd](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/edd/32/161_2.png) [@edd](https://forum.bubble.io/u/edd)\
**Post date:** [November 6, 2015, 5:53am UTC](https://forum.bubble.io/t/is-there-any-way-to-use-visitor-ip-addresses-in-conditional-logic/544/1 "2015-11-06T05:53:49Z")

</div>

tl;dr I’ve searched the app and all documentation, and I can’t seem to find a way to make use of a visitor’s IP address within Bubble. Can it be done?

More specific context: The application I’m building has a very competitive head-to-head voting element and I need to be able to block multiple vote attempts by the same IP address. I know I can block 2nd+ vote attempts for a given logged in user, and I believe that Bubble identifies anonymous users by cookie so that I can also block 2nd+ vote attempts for a given anonymous user as long as she doesn’t clear her cookies. But unfortunately that’s not tight enough control for my application, where visitors have many times in the past (using 3rd party polling services) shown their willingness to vote, clear cookies, revote, clear cookies, revote, clear cookies, etc. to support their choice before I minimized that behavior by blocking 2nd+ vote attempts by IP address. So, whether it is IP address or some other means, I need something a bit tougher to circumvent than cookies to make my application work successfully using Bubble.

Thoughts? Thank you in advance for any ideas.

-Ed

---

<div class="post-metadata">

**Author:** ![NicolasDap](https://avatars.discourse-cdn.com/v4/letter/n/c2a13f/32.png) [@NicolasDap](https://forum.bubble.io/u/NicolasDap)\
**Post date:** [November 6, 2015, 7:41am UTC](https://forum.bubble.io/t/is-there-any-way-to-use-visitor-ip-addresses-in-conditional-logic/544/2 "2015-11-06T07:41:48Z")

</div>

Hello,  
May it help you ?

> [@Determine users country by ip](http://forum.bubble.io/t/determine-users-country-by-ip/267):
>
> what’s the easiest way to determine users location by ip. For example in which country the user accesses the app.

---

<div class="post-metadata">

**Author:** ![AliFarahat](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alifarahat/32/189604_2.png) [@AliFarahat](https://forum.bubble.io/u/AliFarahat)\
**Post date:** [November 6, 2015, 2:58pm UTC](https://forum.bubble.io/t/is-there-any-way-to-use-visitor-ip-addresses-in-conditional-logic/544/3 "2015-11-06T14:58:33Z")

</div>

Thanks @NicolasDap, at this stage i am waiting for blockspring determine Ip to be available through bubble. any idea when the blockspring matters will be sorted out?

---

<div class="post-metadata">

**Author:** ![emmanuel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/emmanuel/32/27657_2.png) [@emmanuel](https://forum.bubble.io/u/emmanuel)\
**Post date:** [November 7, 2015, 4:46pm UTC](https://forum.bubble.io/t/is-there-any-way-to-use-visitor-ip-addresses-in-conditional-logic/544/4 "2015-11-07T16:46:58Z")

</div>

We’re working on it. Prob a week away, but can’t commit on this.

---

<div class="post-metadata">

**Author:** ![JustinC](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@JustinC](https://forum.bubble.io/u/JustinC)\
**Post date:** [July 4, 2016, 8:56pm UTC](https://forum.bubble.io/t/is-there-any-way-to-use-visitor-ip-addresses-in-conditional-logic/544/5 "2016-07-04T20:56:54Z")

</div>

Is there a way to do this yet?

I’m trying to display elements based on the current users IP to address.

---

<div class="post-metadata">

**Author:** ![qaz.wscuther](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/qaz.wscuther/32/259913_2.png) [@qaz.wscuther](https://forum.bubble.io/u/qaz.wscuther)\
**Post date:** [April 12, 2017, 5:15pm UTC](https://forum.bubble.io/t/is-there-any-way-to-use-visitor-ip-addresses-in-conditional-logic/544/6 "2017-04-12T17:15:08Z")

</div>

Any news? 🛰

---

<div class="post-metadata">

**Author:** ![magnus](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@magnus](https://forum.bubble.io/u/magnus)\
**Post date:** [July 25, 2017, 8:54am UTC](https://forum.bubble.io/t/is-there-any-way-to-use-visitor-ip-addresses-in-conditional-logic/544/7 "2017-07-25T08:54:17Z")

</div>

is it really impossible to get IP of user? should be so easy and would add some more flexibility …

---

<div class="post-metadata">

**Author:** ![philip](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/philip/32/17830_2.png) [@philip](https://forum.bubble.io/u/philip)\
**Post date:** [July 25, 2017, 2:58pm UTC](https://forum.bubble.io/t/is-there-any-way-to-use-visitor-ip-addresses-in-conditional-logic/544/8 "2017-07-25T14:58:56Z")

</div>

I wrote up an example of how to do this over here [How do i store a calculated IP in a custom state?](http://forum.bubble.io/t/how-do-i-store-a-calculated-ip-in-a-custom-state/15106/2) 🙂

---

<div class="post-metadata">

**Author:** ![magnus](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@magnus](https://forum.bubble.io/u/magnus)\
**Post date:** [July 25, 2017, 3:18pm UTC](https://forum.bubble.io/t/is-there-any-way-to-use-visitor-ip-addresses-in-conditional-logic/544/9 "2017-07-25T15:18:18Z")

</div>

cool, thanks, will try to use

---

<div class="post-metadata">

**Author:** ![vladlarin](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vladlarin/32/38367_2.png) [@vladlarin](https://forum.bubble.io/u/vladlarin)\
**Post date:** [July 25, 2017, 3:22pm UTC](https://forum.bubble.io/t/is-there-any-way-to-use-visitor-ip-addresses-in-conditional-logic/544/10 "2017-07-25T15:22:02Z")

</div>

That’s correct, you can use the Ipify plugin to get the IP address of the user, just as @philip provided in his example.

 ![](https://us1.discourse-cdn.com/bubble/original/2X/b/b2833e0c1f2259b4b6e3c620a4cf3d5e9b7e4fa2.png)

---

<div class="post-metadata">

**Author:** ![grace.hallak](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/grace.hallak/32/61817_2.png) [@grace.hallak](https://forum.bubble.io/u/grace.hallak)\
**Post date:** [June 14, 2020, 12:02am UTC](https://forum.bubble.io/t/is-there-any-way-to-use-visitor-ip-addresses-in-conditional-logic/544/11 "2020-06-14T00:02:51Z")

</div>

Great example. But I am worried about the IPs being stolen. Can I encrypt it?
