跨站点验证令牌交换验证ASP.Net [英] Cross site validation token exchange validation ASP.Net

查看:72
本文介绍了跨站点验证令牌交换验证ASP.Net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网址为"www.abc.com"的网站.我提供了指向另一个网站"www.xyz.com"的链接(www.abc.com/marketingpage.aspx),以在其网站的iframe中显示我的页面.在www.abc.com/marketingpage.aspx中,有指向www.abc.com/registration.aspx页面的链接.有什么方法可以找到用户是否从www.xyz.com网站而不是直接通过URL进入我的www.abc.com/registration.aspx页面.

I have got a web site say "www.abc.com". I am providing a link (www.abc.com/marketingpage.aspx) to another web site "www.xyz.com" to display my page in a iframe in their site. In the www.abc.com/marketingpage.aspx there is link to www.abc.com/registration.aspx page. Is there any way to find whether the user is coming to my www.abc.com/registration.aspx page from the www.xyz.com site and not directly through URL.

推荐答案

Why dont you put a Query string as a uniqueId in www.abc.com/marketingpage.aspx?QS=3F2504E0-4F89-11D3-9A0C-0305E82C3301 and give the URL to www.xyz.com.

By this way you identify the site it is coming from.You have to map 3F2504E0-4F89-11D3-9A0C-0305E82C3301 to www.xyz.com


这篇关于跨站点验证令牌交换验证ASP.Net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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