# 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:** [21. April 2015 um 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:** 3

<div class="post-metadata">

**Author:** ![doudou](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@doudou](https://meta.discourse.org/u/doudou)\
**Post date:** [21. April 2015 um 14:33 UTC](https://meta.discourse.org/t/how-to-forbid-direct-ip-visit-to-discourse/27797/3 "2015-04-21T14:33:15Z")

</div>

> [@sam](#):
>
> ssl template

where, in the docker?

but when I add ‘return 500’ in the docker nginx configure file, it shows error either visit IP or domain name.

How to do?

---

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