Home > Design - Imagery, Banners & Landers > Landing Pages

How To Spot "Traffic Stealing" Scripts? (7)


04-09-2019 09:58 AM #1 kinged (Member)
How To Spot "Traffic Stealing" Scripts?

Hey

I've tried to search on the forum but weren't able to find any solid info.

What's the best way to spot bad scripts on ripped LPs?


04-09-2019 10:58 AM #2 platinum (Veteran Member)

I believe you have all the answers included in the following thread:
https://stmforum.com/forum/showthrea...Ripped-Landers
Also, keep a closer look at obfuscated javascript snippets since there is where such stuff happens more often.
https://stmforum.com/forum/showthrea...l=1#post334105


04-09-2019 01:04 PM #3 starbuxer (Member)

As platinum said, mostly in the java script. No one here will tell you what THEIR own script looks like


04-09-2019 03:47 PM #4 erikgyepes (Moderator)

Best is to learn some basic coding / reading the code and learn how to clean your landing page from those scripts.

Replace the JS libraries with the CDN versions etc.

No need to worry about dirty scripts then.


04-10-2019 09:12 PM #5 matuloo (Legendary Moderator)

And a simple trick to detect the presence of such script... these scripts steal clicks, right? So try to click on the CTAs multiple times, reload the LPs, click again, then do it one more time, or 20 more times. In case you're always redirected to the offers that matches with your campaign setup, it's most likely clean.


04-11-2019 12:27 AM #6 thedudeabides (Moderator)

If you open up a code editor, you first order of business in editing a LP is to search for all links on the page by typing "http", "www" etc and replacing them with your own.

Then search for ".js" files, "script" for in-line javascript.

As a general rule, I always replace common libraries like jquery with cdn hosted versions on https://cdnjs.com/ or https://developers.google.com/speed/libraries/ since sometimes people like to hide redirects in there.

Spotting "hidden" redirects in javascript however is trivially easy once you know what to look for. It's either going to be a url broken up in to pieces and then re-combined to as to make it harder to search for, and/or making use of obfuscated stings that stand out like a sore thumb, eg

Code:
var _0x5742=['Hello\x20World!','log'];(function(_0x379330,_0x364195){var _0x569c1a=function(_0x57f62c){while(--_0x57f62c){_0x379330['push'](_0x379330['shift']());}};_0x569c1a(++_0x364195);}(_0x5742,0x1c5));var _0x40a0=function(_0x358161,_0x4ad3f6){_0x358161=_0x358161-0x0;var _0x9ca2f2=_0x5742[_0x358161];return _0x9ca2f2;};function hi(){console[_0x40a0('0x0')](_0x40a0('0x1'));}hi();
While urls can be obfuscated easily, javascript functions themeselves rarely are, so searching for "window.location.href or .replace" are also big giveways.


04-13-2019 02:49 PM #7 Traffic Armor ()

One extremely simple method is to use Chrome's Developer Tools.

1. Press F12 in Chrome to launch Developer Tools (Command+Option+I in Mac)
2. Click on the "Network" tab and select "preserve log"
3. Visit your landing page
4. Check the "Domain" column for calls to any unknown domains



There are of course ways around this, but this is a quick preliminary test. You could perhaps refresh the page a few times in case only a portion of the traffic is being redirected.

For any unidentified domains, you can click on the link in the "Initiator" column to see the exact line in the page or script that triggered it.

Hope that helps!


Home > Design - Imagery, Banners & Landers > Landing Pages