Home > General > Affiliate Marketing Forum

Hidden redirect code I can't figure out (11)


04-17-2018 12:55 AM #1 cpamarketing348 (Member)
Hidden redirect code I can't figure out

Hey guys,

I am not all that techy, but most landing pages I've borrowed I've been able to figure out how to get rid of sneaky redirects. Not this time. I have a landing page that I need help with. There doesn't seem to be any consistency with the redirects, I visited the page 10 times in a row with no redirect and then all of a sudden it will start redirecting again. The page is redirecting to a specific url: ssl.mmtgo

Is there anyone on here that can help detect the code on my lander? Or does anyone know who I can find to help with this? Any help is appreciated. Thanks

I'm looking to find someone that is able to help me clean up some pages as I need. Seems to be difficult finding someone that is knowledgeable in this type of stuff, even on sites like upwork. Some of these redirects are so well hidden that the average person doesn't seem to be aware of these tricks.


04-17-2018 01:11 AM #2 wes888 (Member)

I also want to know how to clean a nasty redirect on a lander. I have encountered same problem as OP when the redirect is inconsistent. I think the redirect is hidden somewhere in the JS query. I tried replacing the JS query file with a clean one but it breaks the lander. Hope someone here can enlighten us.


04-17-2018 02:51 AM #3 thedudeabides (Moderator)

It gets pretty easy to spot once you know what to look for.

It's almost always obfuscated code, typically a bunch of html entities in strings, and then the redirect is done via calling some variation of window.location = 'the + obfuscated + string'. So there shouldn't be any window.location stuff - that's a dead giveaway.

Quote Originally Posted by wes888 View Post
I also want to know how to clean a nasty redirect on a lander. I have encountered same problem as OP when the redirect is inconsistent. I think the redirect is hidden somewhere in the JS query. I tried replacing the JS query file with a clean one but it breaks the lander. Hope someone here can enlighten us.
That would be a smart place to hide it, since there's so much code to dig through, but I haven't see anyone hide it there yet.

I always replace the jquery file with one from a CDN eg https://developers.google.com/speed/libraries/#jquery or download it locally.


04-17-2018 11:20 PM #4 cpamarketing348 (Member)

Anyone? I've spent hours on hours trying to figure this out. Starting to get some what frustrated.

I see a window.location in the bottom of the code but it is pointing to my url.. Even the backbutton is redirecting to another offer, but not every single time. In the pushstate script, I don't see anything suspicious/out of the ordinary


04-17-2018 11:29 PM #5 mitchell (Member)

share the lp code and we'll find it for you


04-17-2018 11:40 PM #6 cpamarketing348 (Member)

Some parts of the code that could be redirecting:

<script>function setButtonHeight(){conMid=(whCon.getBoundingClientR ect().bottom-whCon.getBoundingClientRect().top)/2,button.style.top=conMid-button.offsetHeight/2-0.2*button.offsetHeight/2+"px"}function spin(){switch(count){case 1:dWheel.className="spinAround",setTimeout(functio n(){alert("Sorry.\n\nProbeer het alstublieft opnieuw. U heeft nog EEN kans!")},6800);break;case 2:dWheel.className="spinAround2",setTimeout(functi on(){dWheel.className=dWheel.className+" transparent"},6800),setTimeout(function(){device.s tyle.display="block",device.style.left=whCon.offse tWidth/2-device.offsetWidth/2+"px",device.style.top=conMid-device.offsetHeight/2+"px"},7000),setTimeout(function(){first.innerHTM L="<img src='loading.gif'>",first.style.padding="195px 0px",setTimeout(function(){first.parentNode.remove Child(first),second.style.display="block",con.inse rtBefore(second,con.firstChild)},1500)},9000)}coun t++}function gotoUrl(b){PreventExitPop=!1,window.location.href= clickUrl}var clickUrl="MY TRACKING LINK",mydate=new Date,year=mydate.getFullYear(),month=mydate.getMon th(),day=mydate.getDate(),weekday=mydate.getDay(), montharray=new Array("januari","februari","maart","april","mei"," juni","juli","augustus","september","oktober","nov ember","december"),weekdayarray=new Array("zondag","maandag","dinsdag","woensdag","don derdag","vrijdag","zaterdag"),count=1,conMid,headl ine=document.getElementById("headline"),topDate=do cument.getElementById("topDate"),today=document.ge tElementById("today"),con=document.getElementById( "container"),whCon=document.getElementById("wheelC on"),dWheel=document.getElementById("wheel"),butto n=document.getElementById("pressButton"),device=do cument.getElementById("devMockup"),first=document. getElementById("firstpage"),second=document.getEle mentById("secondpage");topDate.innerHTML=day+" "+montharray[month]+" "+year,today.innerHTML=weekdayarray[weekday];</script>


04-17-2018 11:44 PM #7 mitchell (Member)

Zip up the folder and upload it somewhere and share, or if you don't want to share with everyone PM me and I'll take a look real quick I'm a programmer and taking a break right now anyways. Not interested in stealing your LP I just run ecommerce and like code.


04-18-2018 12:48 AM #8 cpamarketing348 (Member)

Okay so we still can't figure out what's causing the the redirect. Here is the zip file for the lander, would someone mind taking a look and see if you can find out what's causing this redirect?


(removed)


04-18-2018 01:03 AM #9 thedudeabides (Moderator)

I'm not seeing anything hidden. There isn't a ton of javascript on the page and it's pretty straightforward.

There's a 3 minute setTimeout function that redirects you to your own link:

Code:
  <script type="text/javascript">
    var str1;
    str1 = "http://track.mytrackinglink.xyz/click";
    setTimeout(function () {
      alert(
        "Sie haben die Chance, das neue iPhone X zu gewinnen!\n\n1. ‘OK’ klicken, um Ihr iPhone X zu erhalten. Sie werden anschließend auf die Webseite unseres Partners weitergeleitet.\n2. Geben Sie Ihre E-Mail-Adresse ein, um Informationen darüber zu erhalten, wie Sie Ihren Preis erhalten können.\n\nEs ist kostenlos!"
      );
      PreventExitPop = false;
      window.location = str1
    }, 180000);
  </script>
Sounds like you're just being redirected to an out of geo offer on your own link.


04-18-2018 01:13 AM #10 cpamarketing348 (Member)

That's that I thought at first, but then I noticed that on my mobile phone I'm being redirected to an anti-virus landing page. Is it possible that the network will redirect traffic to their own funnel if the traffic does not meet publisher requirements (geo, age, etc)


04-18-2018 01:20 AM #11 thedudeabides (Moderator)

Quote Originally Posted by cpamarketing348 View Post
That's that I thought at first, but then I noticed that on my mobile phone I'm being redirected to an anti-virus landing page. Is it possible that the network will redirect traffic to their own funnel if the traffic does not meet publisher requirements (geo, age, etc)
If the traffic you send does not match the GEO or device requirements for the offer than 9 times out of 10 it will be redirect to another offer.

edit: if you're not even seeing the landing page on mobile, then sounds like you've got some kinda of malware installed on your phone.


Home > General > Affiliate Marketing Forum