最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp.net中RewritePath重定向HTTP头Content-Location暴露真实路径
时间:2022-06-25 08:11:45 编辑:袖梨 来源:一聚教程网
ASP.NET使用RewritePath重定向后,服务器响应的HTTP头会多个Content-Location:
HTTP/1.1 200 OK
Content-Length: 48150
Content-Type: image/jpeg
Content-Location: http://www.111com.net /test.jpg
Last-Modified: Tue, 18 Dec 2012 15:01:50 GMT
Accept-Ranges: bytes
ETag: "e119ee9b30ddcd1:1c48"
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Mon, 08 Sep 2014 01:29:40 GMT
Content-Location值为重定向文件的真实路径,在一些场合下我们不想让客户端知道这个路径,有办法去掉它吗?去不掉,但可以手工在IIS中给网站设置一个同名HTTP头借以隐藏真实路径:
HTTP/1.1 200 OK
Content-Length: 48150
Content-Type: image/jpeg
Content-Location: mzwu.com
Last-Modified: Tue, 18 Dec 2012 15:01:50 GMT
Accept-Ranges: bytes
ETag: "e119ee9b30ddcd1:1c58"
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Mon, 08 Sep 2014 01:42:50 GMT
相关文章
- 我的世界附魔等级上限怎么修改指南 高等级武器附魔教程 04-27
- 我的世界蜜蜂怎么养殖 蜂蜜获取途径一览 04-27
- 开放空间琳怎么培养 开放空间琳泽西培养攻略大全 04-27
- 我的世界基础物品合成大全 实用道具制作指南 04-27
- 我的世界瞬间伤害药水怎么制作 强力战斗药水配方介绍 04-27
- 开放空间诗怎么培养 开放空间诗歌爱瑠培养攻略大全 04-27