In IIS, how does one set only a few dynamic scripts that are allowed to access the website? For example:. php, B. php, although there are other dynamic script pages in the website directory, how does IIS set only a few dynamic scripts that are allowed to access the website, such as. php, B. php, although there are other dynamic script pages under the website directory
Reply content:
In IIS, how does one set only a few dynamic scripts that are allowed to access the website, such as a. php and B. php? Although there are other dynamic script pages in the website directory
This should not be handled on the IIS website. It should involve the permission limit of the agency ~~~
I have never used iis. It seems that it cannot target files? In addition, it is too troublesome to target files. Do you always need to modify iis settings to add or reduce files later? We recommend that you put the allowed access in the same directory, for example
/Root
| --/Source
| --/Public
Only allow access to files under public, and do not allow access to/source. For example:
/Public/index. php
Require_once ('../source/functions. php'); echo 'it is index. php ';
Other PHP files referenced in PHP files are based on the disk path and are not restricted by web access.