Skip to content

Commit d8ff23b

Browse files
[3.14] Add a security warning about pydoc's HTTP server (GH-150409)
(cherry picked from commit 5535c1f) Co-authored-by: Stan Ulbrych <stan@python.org>
1 parent 8d050f9 commit d8ff23b

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
@@ -71,6 +71,11 @@ will start a HTTP server on port 1234, allowing you to browse the
7171
documentation at ``http://localhost:1234/`` in your preferred web browser.
7272
Specifying ``0`` as the port number will select an arbitrary unused port.
7373

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

0 commit comments

Comments
 (0)