English 中文(简体)
查阅网站查询人,要求查阅贵格文件
原标题:get referer of website that is requesting your js file

我有一字面,仅作此改动:

document.write(unescape( %3Cscript src="  + mp_protocol +  blah.cloudapp.net/js?location="  + window.location +  type="text/javascript"%3E%3C/script%3E ));

既然你现在可以看到,在使用窗户时通过该法典的网页的URL。 地点。 但这可以由客户轻易编辑。

我想知道,我是否能够接手,而不是通过ur。 我肯定的是,既然这一文字已经扎根,是否会通过提及胎儿?

(即,你还可以打动参考资料......,但这比我认为大多数人会想的要付出的更大努力。)

问题回答

浏览器通常会派一名“推荐人”(原文)负责人,负责提供包含文字链接的纸面要求,而不论如何创建文字内容。

可以通过核对“Referer” HTTP变量(注解异常拼法)来做到这一点。

想法是,你可以检查这一变量,看看它是否提到贵国的部分地点。

请注意,这一变量并不总是准确的;用户可以选择保护其隐私,不派人(使用某种简陋的隐私工具),甚至可以修改其浏览器,以寄送他们在这方面想要的东西。 因此,除非你还考虑到即使是合法用户也可能留下空白或任意加以扼杀。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签