非常简单的落伍小偷

| |
[不指定 2009/08/18 10:38 | by lulizhu ]
优点:简单 就算dz8.0 伪静态的url再怎么变化或添加也无需改动
缺点:图片什么的也做了抓取操作 浪费了宝贵的资源
index.php内容
  1. <?php
  2. error_reporting(0);
  3. $site='www.im286.com';
  4. $mysite='www.pwbbs.cn';
  5. $url=strtolower(substr($_SERVER['REQUEST_URI'],1));
  6. $fullurl='http://'.$site.'/'.$url;
  7. $html=file_get_contents($fullurl);
  8. $out=str_replace($site,$mysite,$html);
  9. $out=str_replace('forumdata/cache/style_8_common.css','http://www.im286.com/forumdata/cache/style_8_common.css',$out);
  10. $out=str_replace('forumdata/cache/style_8_viewthread.css','http://www.im286.com/forumdata/cache/style_8_viewthread.css',$out);
  11. $out=str_replace('include/javascript/common.js','http://www.im286.com/include/javascript/common.js',$out);
  12. echo $out;
  13. ?>


.htaccess内容

  1. <IfModule mod_rewrite.c>
  2. RewriteEngine on
  3. RewriteBase /
  4. RewriteRule ^(.+)$ index.php?noindex
  5. </IfModule>


   演示:http://bluechiphosting.angel.mw/
   本文转自山寨PW论坛
Tags: , ,
Rsource | 评论(0) | 引用(0) | 阅读(609)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称  密码     游客无需密码
网址  电邮     [注册]