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 @@ -19,7 +19,7 @@ This module defines classes for implementing HTTP servers (Web servers).
1919.. warning ::
2020
2121 :mod: `http.server ` is not recommended for production. It only implements
22- basic security checks.
22+ :ref: ` basic security checks < http.server-security >` .
2323
2424One class, :class: `HTTPServer `, is a :class: `socketserver.TCPServer ` subclass.
2525It creates and listens at the HTTP socket, dispatching the requests to a
@@ -470,3 +470,14 @@ the following command uses a specific directory::
470470the ``--cgi `` option::
471471
472472 python -m http.server --cgi 8000
473+
474+ .. _http.server-security :
475+
476+ Security Considerations
477+ -----------------------
478+
479+ .. index :: pair: http.server; security
480+
481+ :class: `SimpleHTTPRequestHandler ` will follow symbolic links when handling
482+ requests, this makes it possible for files outside of the specified directory
483+ to be served.
You can’t perform that action at this time.
0 commit comments