Apache prohibits parsing PHP

Source: Internet
Author: User

Apache prohibits parsing PHP

A directory to parse PHP, this is very useful, we do the site security, this use a lot of, such as some directories can upload files, in order to avoid uploading files have Trojans, so we prohibit the directory below the access to parse PHP.

<Directory/data/www/data>

Php_admin_flag Engice off

<filesmatch "(. *) PHP" >

Order Deny,allow

Deny from all

</filesmatch>

</Directory>

Description: Php_admin_flag engine off this statement is to prohibit the parsing of PHP control statements, but this configuration is not enough, because the user can still access the PHP file after configuration, but do not parse, but can download, the user download PHP files is not appropriate, So it is necessary to ban it.


This article from "12350027" blog, declined reprint!

Apache prohibits parsing PHP

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.