js post 清除REFERER 来路,全网首发

来源:互联网 发布:手写图片识别软件 编辑:程序博客网 时间:2024/04/30 14:48

原贴:http://www.12345t.com/code/js/20140106/219.html

大家都知道http REFERER 无法修改,或模似,呵呵。

今天就教大家如何清除http REFERER的方法,模似我们可以清除,呵呵,全网首发,值得收藏的清来路方法。

讲下清除http referer 的大概过程,
 首先就是使用js 构造form 表单,然后通过iframe 提交,这时你会发起POST提交的数据没有了来路,哈哈。


js post 清除REFERER 来路代码如下:

<iframe  src="" id="GoToUrl" height="1" width="100%" frameborder=0;></iframe>

 <script type="text/javascript">
 var sd=document.getElementById("GoToUrl");
 window.onload=function(){ 
  var SdWindow=sd.contentWindow;
  var TheHtml="<form class=\"ftext\" name=\"payFM\" id=\"payFM\" method=\"post\" action=\"http:\/\/www.12345t.com\/pay\/interface_deposit.php\"><input type=\"hidden\" id=\"ord\" name=\"ord\" value=><input type=\"hidden\" id=\"sac\" name=\"t\" value=\"\"><input type=\"hidden\" id=\"ajax\" name=\"ajax\" value=\"a181d021ecbaff74f6672e81ac06d3c4\"><\/form>";
  //TheHtml='<a href="'+TheHtml+'" id="gotoUrl" target="_top"> </a>';
  SdWindow.document.body.innerHTML=TheHtml; 
  SdWindow.document.forms[0].target="_top"
  SdWindow.document.forms[0].submit();
  //var TheA=SdWindow.document.getElementById("gotoUrl");
  //TheA.click();
 }

 </script>

应网友要求,提供清JS清来路代码打包下载。。


js Post 清referer 来路打包下载
0 0