Home  >  Article  >  Topics  >  How to configure iis to disable php scripts?

How to configure iis to disable php scripts?

藏色散人
藏色散人Original
2019-05-16 15:31:394590browse

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!

Statement:
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 admin@php.cn
Previous article:NoneNext article:IIS和Apache的区别是什么