# 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:** 6

<div class="post-metadata">

**Author:** ![Lee\_Ars](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lee_ars/32/1597_2.png) [@Lee\_Ars](https://meta.discourse.org/u/Lee_Ars)\
**Post date:** [4월 21, 2015, 7:30오후 UTC](https://meta.discourse.org/t/how-to-forbid-direct-ip-visit-to-discourse/27797/6 "2015-04-21T19:30:59Z")

</div>

> [@sam](#):
>
> host header needs to be parsed though, so its not doable in iptables.

I prefer the nuclear option! “No more Discourse! NO MORE ANY WEB SITES AT ALL!”

---

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