cad标注数字太小怎么办:谁知道小说阅读网的网页防下载的原理

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/06 11:37:19
www.readnovel.com这个是小说阅读网的网址
如果你打开多个浏览器查看里面的小说,会出来一个页面告诉你
如下图
http://bbs.zjff.net/attachments/forumid_47/zrTDMP7LTE=_st84J56IBMZx.gif
请问,有没有人知道这个防下载的东西的原理,是怎么做的
如何能够避开它呢??
本人写过一个简单的PHP脚本进行测试,代码如下
for ($i=1;$i<=64;$i++)
{
$i=3;
$filename="http://www89.readnovel.com/novel/10126/".$i.".html";
$handle = fopen ($filename, "rb");
$contents =getcontents($handle);
echo $contents;
$a=explode("<div class=\"subhead\">",$contents);
$b=explode("form",$a[1]);
$c=strip_tags($b[0],"<p>");
if( $handle=fopen($i.".htm",'wb') )
{
fwrite($handle,$c);
fclose ($handle);
}
echo "完成$i<br>";
}
第一个页面能下载成功,后面的都不行
到底什么情况下能下载,什么情况下不能下载,很好奇

for ($i=1;$i<=64;$i++)
{
$i=3;
$filename="http://www89.readnovel.com/novel/10126/".$i.".html";
$handle = fopen ($filename, "rb");
$contents =getcontents($handle);
echo $contents;
$a=explode("<div class=\"subhead\">",$contents);
$b=explode("form",$a[1]);
$c=strip_tags($b[0],"<p>");
if( $handle=fopen($i.".htm",'wb') )
{
fwrite($handle,$c);
fclose ($handle);
}
echo "完成$i<br>";
}