营销部

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 9234|回复: 0

淘宝客如何规避搜索引擎惩罚: 只需要一段代码。。。

[复制链接]
发表于 2014-2-10 16:57:34 | 显示全部楼层 |阅读模式
原理:通过iframe+javascript的方式 让百度找不到淘宝客的痕迹。。。。。其中大家注意下站点首页,也是<网站建设中> 或者 <网站升级中> 这种暂时不会被惩罚,会跳过惩罚
以下只是举例,我调查过暂时有效的方法
网址:http://www.hackshp.cn/buy/35155345763
源码:
  1. <html lang="en">
  2. <head>
  3.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  4.     <title>跳转中...</title>
  5.     <link href="/css/bootstrap.css" rel="stylesheet">
  6.     <script type="text/javascript" src="/js/jq-1.9.js"></script>
  7. </head>

  8. <body style="text-align: center;">
  9. <div class="modal hide in" id="myModal" aria-hidden="false" style="display: block;width: 500px;height: 500px;">
  10.     <div class="modal-header" style="text-align: center;">
  11.         <p style="color: red;font-size: 16px;">正在为您跳转到产品....</p>

  12.         <div><img src="/images/preload.gif"></div>
  13.     </div>
  14.     <div><p style="color: red;font-size: 14px;text-indent: 6em;">如果浏览器没有自动跳转,请点刷新页面或击图片进行跳转.</p></div>
  15.     <div class="modal-body" style="margin:auto;text-align: center">
  16.         <iframe src="http://www.sinogingko.net/sclick.php?iid=35155345763"
  17.                 style="border:none;width: 260px;height: 360px;border: none;margin:auto;"></iframe>
  18.     </div>
  19. </div>
  20. </body>
  21. </html>
复制代码
其中 http://www.sinogingko.net/sclick.php?iid=35155345763 的源码如下
  1. <html>
  2. <head>
  3.     <script type="text/javascript">
  4.         (function (win, doc) {
  5.             var s = doc.createElement("script"), h = doc.getElementsByTagName("head")[0];
  6.             if (!win.alimamatk_show) {
  7.                 s.charset = "gbk";
  8.                 s.async = true;
  9.                 s.src = "http://a.alimama.cn/tkapi.js";
  10.                 h.insertBefore(s, h.firstChild);
  11.             }
  12.             ;
  13.             var o = { pid: "mm_32001269_4956277_15634734", /*推广单元ID,用于区分不同的推广渠道*/ appkey: "", /*通过TOP平台申请的appkey,设置后引导成交会关联appkey*/ unid: ""/*自定义统计字段*/ };
  14.             win.alimamatk_onload = win.alimamatk_onload || [];
  15.             win.alimamatk_onload.push(o);
  16.                         var locating = false;
  17.         setInterval(function () {
  18.             var tao_frame = document.getElementById('writeable_iframe_0');
  19.             if (tao_frame) {
  20.                 var tao_href = tao_frame.contentWindow.document.getElementsByTagName('a');
  21.                 if (tao_href) {
  22.                     if (tao_href[0].href && locating == false) {
  23.                         window.top.location.href = tao_href[0].href;
  24.                         locating = true;
  25.                     }
  26.                 }
  27.             }
  28.         }, 200);
  29.         setTimeout(function () {
  30.             if (locating == false) {
  31.                 var promo_url = "http://s.click.taobao.com/t?e=m%3D2%26s%3DRC%2FrPO%2BL%2FdIcQipKwQzePCperVdZeJviK7Vc7tFgwiFRAdhuF14FMX6SCPRaAPVdRitN3%2FurF3wAtS29kx24wLYJW6sfPPLG5UoOeRlV%2BcG%2Bh63zuUZMYYgaseAKBk0cDPtbhjM5VDw%3D";
  32. //alert("对不起,该商商家已下架\r\n 正在带您到天猫商城...");
  33.                 window.top.location.href = promo_url;
  34.                 locating = true;
  35.             }
  36.         }, 5000);
  37.         })(window, document);
  38.     </script>
  39. </head>
  40. <body>
  41. <div>
  42.     <a data-type="0" biz-itemid="35155345763" data-style="2" data-tmpl="230x312" target="_top">
  43.     </a>
  44. </div>
  45. </body>
  46. </html>
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|YingXiaoBu.Com ( 冀ICP备09001608号 石公备号(13010002130008) )

报警

GMT+8, 2025-5-5 06:44 , Processed in 0.043536 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表