# Allow list of internal hosts for scanning

**URL:** <https://meta.discourse.org/t/allow-list-of-internal-hosts-for-scanning/64442>\
**Category:** Feature\
**Created:** [June 13, 2017, 5:06pm UTC](https://meta.discourse.org/t/allow-list-of-internal-hosts-for-scanning/64442 "2017-06-13T17:06:19Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![ssvenn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ssvenn/32/86740_2.png) [@ssvenn](https://meta.discourse.org/u/ssvenn)\
**Post date:** [August 9, 2018, 7:46pm UTC](https://meta.discourse.org/t/allow-list-of-internal-hosts-for-scanning/64442/7 "2018-08-09T19:46:55Z")

</div>

This is a nice security precaution feature, but it would be great if the rails production log had some more debug text when it comes to why oneboxes are failing.. something like “host X is on a private network but not whitelisted” or “opengraph meta tags missing” and so on.

I’ve been scratching my head about why internal oneboxes didn’t work all day until I found this explanation of the whitelisting setting. It wasn’t immediately obvious to me that the internal host whitelist required _just_ the hostnames, without any http:// or url paths around it.

At least I learned something new about HTTP teapots after searching for that generic 418 code in the production.log 😆

[https://meta.discourse.org/t/oneboxing-failing-with-418/78629/2](https://meta.discourse.org/t/oneboxing-failing-with-418/78629/2)

---

_[View the full topic](https://meta.discourse.org/t/allow-list-of-internal-hosts-for-scanning/64442)._
