如何识别一个ASP.NET MVC的网站? [英] How do I identify an ASP.NET MVC website?

查看:100
本文介绍了如何识别一个ASP.NET MVC的网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图决定一个公司是否在其投资组合的ASP.NET MVC建造的网站。有没有确定没有要求他们假设我可以浏览网页的问题在我的浏览器的一个可靠的方法?这似乎很简单,但我没能在网上找到这些信息。我认为,在HTML源和名词,动词URL结构缺乏的视图状态相关的东西将是很好的指标。还有没有其他指标?

I am trying to determine whether a company has websites built with ASP.NET MVC in their portfolio. Is there a reliable way of determining that without asking them assuming that I can visit the website in question in my browser? This might seem simple, but I wasn't able to find this information online. I would think that the lack of viewstate related stuff in the HTML source and the noun-verb URL structure would be good indicators. Are there any other indicators?

推荐答案

有绝对没有可靠的方法。路由使事情更糟的是,你甚至不能说这是ASP.NET以外可能寻找在由Web服务器发送,并查找指示HTTP头,但它是不可靠的。

There's absolutely no reliable way. Routing makes things even worse, you can't even say it's ASP.NET other than probably looking at the HTTP headers sent by the web server and look for indication but it's not reliable.

但是,这里有一个试探你这是ASP.NET MVC的强烈暗示:

But here's one heuristic you which is a strong indication of ASP.NET MVC:


  • ASP.NET HTTP头由IIS发送

  • 在页面的ViewState缺位

  • 扩展名的网址

  • pretty 的HTML

  • 多的presence 在同一页面表单标记

  • ASP.NET HTTP Header sent by IIS
  • Absence of ViewState in pages
  • Extensionless urls
  • Pretty HTML
  • Presence of multiple form tags in the same page

说到HTTP头,这里有一些你可能会寻找:

Talking about HTTP headers, here are some you may look for:

X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
X-AspNetMvc-Version: 1.0

这篇关于如何识别一个ASP.NET MVC的网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆