asp.net| Control | Download the author to do a report of the site, the report is stored in Excel form in the server, you want to log on to the person or have permission to download Excel reports. However, the path to the file download cannot be hidden, so page control is useless. Recently in the study of IIS, suddenly enlightened.
First edit or modify the site's Web.config, add or modify the red area
<!--authentication
This section sets the authentication policy for the application. The possible patterns are "Windows",
"Forms", "Passport" and "None"
"None" does not perform authentication.
"Windows" IIS performs authentication based on the settings of the application
(Basic, concise, or integrated Windows). Anonymous access must be disabled in IIS.
Forms you provide users with a custom form for entering credentials (a Web page), and then
Verify their identities in your application. The user credential token is stored in the Cookie.
"Passport" authentication is performed through a centralized authentication service in Microsoft.
It provides individual logins and core profile services for member sites.
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.