Requirements: Remove HTTP response headers in IIS 7, 7.5, 8.0, 8.5 and ASP.NET, and modify or hide Server header information in IIS 7, 7.5, 8.0, 8.5. Solution: Use url-rewrite rules 1. Install http://www.iis.net/downloads/microsoft/url-rewrite first 123WORDPRESS.COM download https://www.jb51.net/softs/614384.html 2. Copy the following to web.config <rewrite> <outboundRules rewriteBeforeCache="true"> <rule name="Remove Server header"> <match serverVariable="RESPONSE_Server" pattern=".+" /> <action type="Rewrite" value="Apache" /> </rule> </outboundRules> </rewrite> Note that this is the returned Server protocol header, and the value can be modified as required. 3. Restart IIS If the above operation does not work, please refer to the following article Remove X-Powered-By HTTP header The method to remove the X-Powered-By HTTP header in IIS7 is: 1 Start IIS Manager Remove X-AspNet-Version HTTP header Modify the web.config configuration file and add the following line in the <system.web> block <httpRuntime enableVersionHeader="false" /> Remove X-AspNetMvc-Version HTTP header Set the DisableMvcResponseHeader property of the MvcHandler class to True in the Application_Start event of Global.asax Remove the Server HTTP header Download UrlScan After installing UrlScan (IIS-Metabase, the IIS 6 metabase compatibility component, needs to be installed), Then restart IIS Well, that’s all for this article. I hope you will support 123WORDPRESS.COM in the future. |
<<: Detailed explanation of virtual DOM in Vue source code analysis
>>: MySQL infrastructure tutorial: detailed explanation of the query statement execution process
To deploy multiple sites on a server, you need to...
1. Design source code Copy code The code is as fol...
Table of contents 1. Overview 1.1 Creating a func...
The main text page of TW used to have a width of 8...
Table of contents 1. Brief Introduction 2. setInt...
<template> <div class="demo"&g...
Utilize the browser's non- overflow:auto elem...
Table of contents Standard execution process opti...
Preface We often need to do something based on so...
Preface In MySQL, both Innodb and MyIsam use B+ t...
Table of contents 1. Use the a tag to preview or ...
Prometheus (also called Prometheus) official webs...
When there is a lot of data to be displayed, the ...
This article uses examples to illustrate the opti...
Table of contents 1. Comparison of data before an...