我正在做的是使用 Jsoup 来解析 WordPress 下载监视器 url 形式的下载 url。示例:http:// ** .com/wp-content/plugins/download-monitor/download.php?id=11036 当您单击此链接时,它将打开一个新的下载页面,该页面使用 id 11036 下载真实的文件。
我的问题是如何绕过该下载监视器插件并获取真实的文件网址?
更新 1:这是用于重定向的 java 代码。
<script type="text/javascript">
console.log(location.href);
var hasAutoDonload = false;
var address;
if(location.href.indexOf("d3") > 0){
address = "http://d3.apknew.com/download.php" + window.location.href.replace("http://apknew.com/download-page","");
}else{
address = "http://d2.apknew.com/download.php" + window.location.href.replace("http://apknew.com/download-page","");
}
var hasTouch = 'ontouchstart' in window;
window.onload = function(){
if(!hasAutoDonload){
downloadFun();
}
}
function downloadFun(){
hasAutoDonload = true;
if(hasTouch){
window.location.href = address;
}else{
document.getElementById("downloadIframe").src = address;
}
}
function downloadFun1(){
window.open(address)
}
//http://d2.apknew.com/download.php?i=er59f9t&n=QuickPic_2.0%20beta.apk&d=2012-02
</script>