Some tips on preventing attacks on IIS servers

Source: Internet
Author: User

The IIS server has been used by many people. However, here we will explain some small experiences summarized over the years to help you better use the IIS server. Next, let's explain how to prevent the attacks.

1. Delete unnecessary virtual directories

After the IIS server is installed, some directories are generated by default under wwwroot, including IISHelp, IISAdmin, IISSamples, and MSADC. These directories have no practical effect and can be deleted directly.

2. Delete dangerous IIS server components

Some IIS server components installed by default may cause security threats, such as Internet Service Manager (HTML), SMTP Service, NNTP Service, Sample Page, and script, you can decide whether to delete the file based on your needs.

3. Set permissions for file categories on the IIS server

In addition to setting necessary permissions for IIS server files in the operating system, you must also set permissions for these files in the IIS Server Manager. A good setting policy is to create directories for different types of files on the Web site and assign them appropriate permissions. For example, static file folders allow reading and writing, ASP script folders allow execution, writing and reading, EXE, and other executable programs allow execution and read/write rejection.

4. Delete unnecessary application mappings

By default, many application mappings exist in ISS. Except for the ASP program ing, other files are rarely used on websites.

In "Internet Service Manager", right-click the website directory and select "properties". On the "home directory" page of the "website directory properties" dialog box, click the [configuration] button, the "application configuration" dialog box is displayed. On the "Application ing" Page, useless program ing is deleted.

If you need this type of file, you must install the latest system patch, select the corresponding program ing, and then click the [edit] button, in the "Add/edit application extension ing" dialog box, select the "check whether a file exists" option.

In this way, when the customer requests such files, the IIS server first checks whether the files exist and then calls the dynamic link library defined in the program ing for parsing.
 

Related Article

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.