获取用户访问的网站网址 [英] get user visited site url

查看:61
本文介绍了获取用户访问的网站网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


如何使用户使用C#代码访问所有站点.像鱿鱼服务器,这是可能的.但是我不知道使用c#.如果没有代理,是否有可能? div>

除非引入 身份验证 ,否则HTTP协议中没有用户"或用户信息"之类的东西,但是您会获得用户信息仅在某些用户获得身份验证之后.除此之外,用户浏览器仅提供有关HTTP请求的引用,用户的IP地址和主机名信息以及有关操作系统和浏览器的某些信息,但是这些信息可能会丢失伪造的信息,并且该IP可能不是真实"用户的计算机IP;此外,大多数用户使用动态IP,因此您甚至不知道该用户与前一段时间联系过该网站的人是同一个人.

因此,如果您需要身份验证,请从此处开始:
http://msdn.microsoft.com/en-us/library/eeyk640h.aspx [ ^ ].

若要查看在HTTP请求中传递到ASP.NET应用程序的信息,请参见类System.Web.HttpRequest:
http://msdn.microsoft.com/en-us/library/system.web. httprequest.aspx [ ^ ].

另请参阅有关请求处理和身份的这两篇有趣的文章:
http://support.microsoft.com/kb/317012 [ http://msdn.microsoft.com/en-us/magazine/cc188942.aspx [ ^ ].

—SA


Hi
How to get a user visited all site using C# code.Like squid server it is possible .but i do not know using c#.Is it possible without proxy?if posssible please help me

解决方案

There are no such thing as "user" or "user information" circulating in HTTP protocol, unless you introduce authentication, but then you would get user information only after some user gets authenticated. Other than that, the users browser only provide your information about HTTP request''s referral, user''s IP address and host name information, and some information on the OS and the browser, but that information can be missing of faked, and the IP might not be a "real" user''s computer IP; besides, most users use dynamic IP, so you cannot even know that a user is the same person who had contacted the site a while ago.

So, if you need authentication, start here:
http://msdn.microsoft.com/en-us/library/eeyk640h.aspx[^].

To see what information is delivered to your ASP.NET application in the HTTP request, please see the class System.Web.HttpRequest:
http://msdn.microsoft.com/en-us/library/system.web.httprequest.aspx[^].

See also these two interesting articles on request processing and identities:
http://support.microsoft.com/kb/317012[^],
http://msdn.microsoft.com/en-us/magazine/cc188942.aspx[^].

—SA


这篇关于获取用户访问的网站网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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