# Can I do IP BAN on WEB (P5)?

**URL:** <https://discourse.processing.org/t/can-i-do-ip-ban-on-web-p5/42481>\
**Category:** Beginners\
**Created:** [July 23, 2023, 11:10am UTC](https://discourse.processing.org/t/can-i-do-ip-ban-on-web-p5/42481 "2023-07-23T11:10:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GWAK](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@GWAK](https://discourse.processing.org/u/GWAK)\
**Post date:** [July 23, 2023, 11:10am UTC](https://discourse.processing.org/t/can-i-do-ip-ban-on-web-p5/42481/1 "2023-07-23T11:10:20Z")

</div>

Can I do IP BAN on WEB (P5)?

hello. Thank you for your interest in my article.

We confirmed that there is an ‘IP BAN’ function in ‘WEB’ that we use.

Is there any way to do ‘IP BAN’ in ‘P5’? Or do you have a ‘solution’ or ‘example’?  
I’m curious and upload it.

---

<div class="post-metadata">

**Author:** ![mnse](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mnse/32/16520_2.png) [@mnse](https://discourse.processing.org/u/mnse)\
**Post date:** [July 23, 2023, 12:10pm UTC](https://discourse.processing.org/t/can-i-do-ip-ban-on-web-p5/42481/2 "2023-07-23T12:10:49Z")

</div>

Hi @GWAK,

In general this is only possible server side. If you want to block a IP you can block it on the server by several methods (on system level, on apache, on nodejs, etc)

For sure you can also fetch the address on client side with ie [ipfy.org](http://ipfy.org) API request and show ie error message, but that’s not a serious approach. 🙂

Cheers  
— mnse

---

<div class="post-metadata">

**Author:** ![GWAK](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@GWAK](https://discourse.processing.org/u/GWAK)\
**Post date:** [July 23, 2023, 7:56pm UTC](https://discourse.processing.org/t/can-i-do-ip-ban-on-web-p5/42481/3 "2023-07-23T19:56:55Z")

</div>

@mnse

Thank you for answer. I see what you mean.
