There should be no redundant program security considerations in the Web directory

Source: Internet
Author: User
Although some judgments and limitations will be added before these procedures. But in addition to the library files, there are temporary files, template files and so on these files should not be directly accessed through the Web. Store inaccessible files in the Web directory, both in terms of security and code management.
Why is there such a problem? Back in the past, most of the site is still placed on the virtual host, and the root directory of FTP is directly the root directory of the web. In order to adapt to this situation. Like phpBB, VB, Discuz, Ofstar code can only store the library files directly to the same level of the directory.
But is it necessary now? Now the server price is much cheaper than before, basically a webmaster is a server, almost also VPS, and even if the virtual host will not be the FTP root directory and the Web root directory is the same. FTP is generally a higher level directory than the Web. So there's no need to put all the programs in the Web directory, but to put the files that need to be used on the web in the Web directory.

The above describes the Web directory should not have redundant program security considerations, including aspects of the content, I hope the PHP tutorial interested in a friend helpful.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.