apache prohibits directory traversal

Disable Apache from displaying the directory index, disable Apache from displaying the directory structure list, and disable Apache from browsing the directory. This is a question that is often asked on the Internet. In fact, it all means the same thing. Here are three common ways to disable Apache from displaying directory indexes.
To prevent Apache from displaying directory indexes, just remove Indexes in Option.

Just remove Indexes in the above code to prevent Apache from displaying the directory structure. The user will not see the list of files and subdirectories in this directory. The function of Indexes is to display the directory structure when there is no index.html file in the directory. If Indexes is removed, Apache will not display the list of the directory .

Guess you like

Origin blog.csdn.net/zgscwxd/article/details/135196272