File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ This module defines classes for implementing HTTP servers (Web servers).
2020.. warning ::
2121
2222 :mod: `http.server ` is not recommended for production. It only implements
23- basic security checks.
23+ :ref: ` basic security checks < http.server-security >` .
2424
2525One class, :class: `HTTPServer `, is a :class: `socketserver.TCPServer ` subclass.
2626It creates and listens at the HTTP socket, dispatching the requests to a
@@ -477,3 +477,14 @@ the following command uses a specific directory::
477477the ``--cgi `` option::
478478
479479 python -m http.server --cgi 8000
480+
481+ .. _http.server-security :
482+
483+ Security Considerations
484+ -----------------------
485+
486+ .. index :: pair: http.server; security
487+
488+ :class: `SimpleHTTPRequestHandler ` will follow symbolic links when handling
489+ requests, this makes it possible for files outside of the specified directory
490+ to be served.
You can’t perform that action at this time.
0 commit comments