2. permission management preparation: You should know the most basic security measures for ASP. NET websites!

Source: Internet
Author: User

I. ASP. NETThe authentication method used with IIS to verify user creden (such as user name and password ):

1. Windows: basic, summary, or integrated Windows authentication (NTLM or Kerberos ).

2. Forms authentication. You can use this authentication in your applicationProgramCreate a logon page and manage authentication.

3. Customer certificate authentication

 

Ii. Basic Security Measures for ASP. NET websites:

1. Data is frequently performed;

2. Place the web server in a secure location and control file permissions;

3. Use Windows NTFS file system

4. Use a password with high security. It is recommended that you do not record the password on your computer and change the password frequently.

5. Ensure IIS security.

6. Disable unused ports and services and open the firewall.

7. Monitor System Event Logs,Monitor repeated login attempts to the system or excessive requests to the web server.

8.Use the latest security updates from Microsoft Windows and Internet Information Service (IIS), and any other updates from Microsoft SQL Server or other data sources that may be used by applications, keep the application server up to date.

9. prevent malicious user input

10. Use the "+" plus sign as few as possible to connect to the SQL string, and use stored procedures or parameter SQL statements.

11. Do not store key information in cookies, set a reasonable validity period, and encrypt the information in cookies.Set the secure and HTTPOnly attributes of cookieTrue.

12. restrict the size of uploaded files

< Configuration >
< System. Web >
< Httpruntime maxrequestlength = " 4096 "   />
</ System. Web >
</ Configuration >

13. IIS is configured to use process adjustment to prevent excessive CPU consumption

 

 

 

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.