# How to disable direct https://ipaddress visit?

**URL:** <https://meta.discourse.org/t/how-to-disable-direct-https-ipaddress-visit/49927>\
**Category:** Self-hosting\
**Tags:** tablet\
**Created:** [9 Settembre 2016, 10:06am UTC](https://meta.discourse.org/t/how-to-disable-direct-https-ipaddress-visit/49927 "2016-09-09T10:06:20Z")\
**Posts on this page:** 1\
**Showing post:** 13

<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:** [10 Settembre 2016, 2:09am UTC](https://meta.discourse.org/t/how-to-disable-direct-https-ipaddress-visit/49927/13 "2016-09-10T02:09:24Z")

</div>

i just want when people visit the website via [https://serverip](https://serverip) he will get an internal 500 page or nothing at all and cant go on by clicking trust the certification. so i am seaching for the solution on nginx or firewall. any sugguestion？

---

_[View the full topic](https://meta.discourse.org/t/how-to-disable-direct-https-ipaddress-visit/49927)._
