File: server_names.rst

package info (click to toggle)
hypercorn 0.17.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 908 kB
  • sloc: python: 7,839; makefile: 24; sh: 6
file content (16 lines) | stat: -rw-r--r-- 518 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
.. _server_names:

Server names
============

Hypercorn can be configured to only respond to requests that have a
recognised host header value by adding the recognised hosts to the
``server_names`` configuration variable. Any requests that have a host
value not in this list will be responded to with a 404.

DNS rebinding attacks
---------------------

Setting the ``server_names`` configuration variable helps mitigate
`DNS rebinding attacks <https://en.wikipedia.org/wiki/DNS_rebinding>`_
and hence is recommended.