Home > Topics > IIS > body text

How to configure iis to disable php scripts?

藏色散人
Release: 2021-05-28 14:49:49
original
4561 people have browsed it

How to configure iis to disable php scripts?

For website security, many image upload directories and other directories that do not require the execution of scripts can be prohibited from executing scripts through the following methods, such as prohibiting the execution of PHP scripts.

Generally, iis is relatively simple, iis6 is as shown in the figure below:

How to configure iis to disable php scripts?

Figure 1

Many users who purchase virtual host space , if the space provider provides an online management program, this can also be achieved. Just look at the help for details.
You need to know the directory name, just set it.

iis7 Prohibit execution of php

IIS7 is also similar to IIS6.0. Select the directory corresponding to the site, data, uploads and static html file directories, double-click the function view panel "Handler mapping" (Figure 2)

How to configure iis to disable php scripts?

Figure 2

In "Edit function permissions...", we directly remove the execution of the script Permissions are enough. (As shown in Figure 3)

How to configure iis to disable php scripts?

Figure 3

Related recommendations: "PHP Tutorial"

The above is the detailed content of How to configure iis to disable php scripts?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]
Latest issues
Popular Tutorials
More>
Latest downloads
More>
web effects
Website source code
Website materials
Front end template
About us Disclaimer Sitemap
PHP Chinese website:Public welfare online PHP training,Help PHP learners grow quickly!