您如何欺骗HTTP_REFERER? [英] How do you spoof HTTP_REFERER?
问题描述
我需要尝试欺骗通过我的另一个页面的HTTP_REFERER,以便在目标页面中可以确定请求是从右侧"页面传入的,并执行适当的逻辑.
I need to try and spoof the HTTP_REFERER passed my another page so that in the destination page, I can determine of the request is coming in from the "right" page and perform appropriate logic.
- 如何在JavaScript(AJAX)中做到这一点?
- 我可以在ASP.Net中这样做吗?
TIA 公羊
推荐答案
通常来说,没有漏洞利用程序,插件或其他扩展程序,您不能导致其他浏览器返回错误的HTTP_REFERER.如果要修改从Web浏览器发送的值,并且正在使用FireFox,请查看修改标题扩展名
Generally speaking, you cannot cause other browsers to return a false HTTP_REFERER without an exploit, plug-in, or other extension. If you want to modify the value sent from your web browser and you are using FireFox, look at the Modify Headers extension.
无论如何,您永远不应依赖HTTP_REFERER的准确性.无法保证您收到的HTTP_REFERER不会被伪造或根本不会发送.
In any case, you should never rely on HTTP_REFERER being accurate. There is no guarantee that the HTTP_REFERER you receive is not faked or simply not sent.
这篇关于您如何欺骗HTTP_REFERER?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!