How does IIS set to allow access to only some files?

Source: Internet
Author: User
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.

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.