欢迎来到 - 多学网 - http://www.duoxue8.com !
当前位置:多学网学习教育电脑学习电脑技巧[推荐]隐藏真实的url下载地址的方法技巧

[推荐]隐藏真实的url下载地址的方法技巧

[11-11 12:19:17]   来源:http://www.duoxue8.com  电脑技巧   阅读:960
[推荐]隐藏真实的url下载地址的方法技巧,标签:电脑技巧大全,电脑基础知识,http://www.duoxue8.com

近年来很多下载站的链接都是js给封起来的,链接复制不到,复制的时候只能看到浏览器的调用


java_s:download_client();


这样做的好处是不会被一些"爬虫"给纳入采集库,往往搜索引擎爬虫是不去看js里面的内容的.
近来的一些站更甚. 下载工具已被flashget和迅雷给垄断天下. 那么,往往有很多网站,是如何实现的呢?
正常的又要怎么写呢? 真实url在哪里呢?

其实,挖掘这个,是我在下uc的时候,uc也已经隐藏了真实地址,这样只能通过浏览器下载,无法调用第三方下载软件(ps.问题是我的迅雷不监视浏览器)

来挖掘吧.

function download_client() 
{

var _ver = "UC2009_beta";
var _path = "http://dl.uc.sina.com/uc/uc2009beta_setup.exe";
var _url = "http://beacon.sina.com.cn/e.gif?ucim||" + _ver + "||download||" + Math.random();

try {
var _head = document.getElementsByTagName("head")[0];
var snode = document.createElement("img");
snode.setAttribute("src", _url);
snode.onload = function() {
window.location.href = _path;
}
if(navigator.appName == "Microsoft Internet Explorer") {
snode.onreadystatechange = function() {
if(snode.readyState == "complete" || snode.readyState == "loaded") {
_head.removeChild(snode);
window.location.href = _path;
}
}
}
_head.appendChild(snode);
}catch(e){
window.location.href = _path;
}


uc的下载地址是这样封装的.
头就是


<SCRIPT type=text/javascript>


嘿嘿,这样的确很方便,哈哈..还有很多优势....
 




[推荐]隐藏真实的url下载地址的方法技巧 结束。
Tag: 电脑技巧电脑技巧大全,电脑基础知识电脑学习 - 电脑技巧