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 @@ -19,7 +19,7 @@ This module defines classes for implementing HTTP servers (Web servers).
19
19
.. warning ::
20
20
21
21
:mod: `http.server ` is not recommended for production. It only implements
22
- basic security checks.
22
+ :ref: ` basic security checks < http.server-security >` .
23
23
24
24
One class, :class: `HTTPServer `, is a :class: `socketserver.TCPServer ` subclass.
25
25
It creates and listens at the HTTP socket, dispatching the requests to a
@@ -470,3 +470,14 @@ the following command uses a specific directory::
470
470
the ``--cgi `` option::
471
471
472
472
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