File tree 1 file changed +12
-1
lines changed
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).
20
20
.. warning ::
21
21
22
22
:mod: `http.server ` is not recommended for production. It only implements
23
- basic security checks.
23
+ :ref: ` basic security checks < http.server-security >` .
24
24
25
25
One class, :class: `HTTPServer `, is a :class: `socketserver.TCPServer ` subclass.
26
26
It creates and listens at the HTTP socket, dispatching the requests to a
@@ -477,3 +477,14 @@ the following command uses a specific directory::
477
477
the ``--cgi `` option::
478
478
479
479
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