Skip to content

Commit 59e709b

Browse files
[3.15] Add a security warning about pydoc's HTTP server (#150573)
(cherry picked from commit 5535c1f) Co-authored-by: Stan Ulbrych <stan@python.org>
1 parent b980552 commit 59e709b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Doc/library/pydoc.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ will start a HTTP server on port 1234, allowing you to browse the
6868
documentation at ``http://localhost:1234/`` in your preferred web browser.
6969
Specifying ``0`` as the port number will select an arbitrary unused port.
7070

71+
.. warning::
72+
73+
The :mod:`!pydoc` HTTP server is intended for local use during
74+
development and is not suitable for production use.
75+
7176
:program:`python -m pydoc -n <hostname>` will start the server listening at the given
7277
hostname. By default the hostname is 'localhost' but if you want the server to
7378
be reached from other machines, you may want to change the host name that the

0 commit comments

Comments
 (0)