# How to forbid direct IP visit to discourse?

**URL:** <https://meta.discourse.org/t/how-to-forbid-direct-ip-visit-to-discourse/27797>\
**Category:** Self-hosting\
**Created:** [4월 21, 2015, 12:48오후 UTC](https://meta.discourse.org/t/how-to-forbid-direct-ip-visit-to-discourse/27797 "2015-04-21T12:48:46Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [4월 21, 2015, 6:47오후 UTC](https://meta.discourse.org/t/how-to-forbid-direct-ip-visit-to-discourse/27797/5 "2015-04-21T18:47:14Z")

</div>

host header needs to be parsed though, so its not doable in iptables.

---

_[View the full topic](https://meta.discourse.org/t/how-to-forbid-direct-ip-visit-to-discourse/27797)._
