Home > Technical & Creative Skills > Programming, Servers & Scripts

Deleting JS from ripped landers: If nothing breaks, just remove the code? (7)


07-18-2017 09:31 PM #1 lifter123 (Member)
Deleting JS from ripped landers: If nothing breaks, just remove the code?

Hi everyone,

I've been ripping landers from Adplexity without editing the JS. I just removed any obvious links from the HTML file and removed any images that are hosted on someone else's site.

From what I've read, hiding sneaky redirects in JS is one of the easiest methods. I'm not a programmer, but I've studied the absolute basics of HTML and CSS (currently working on JS). So far, I've always worked by simply trying stuff and seeing whether it works.

So for deleting sneaky redirects, I tried just deleting ALL the code from JS files outside the main HTML of my lander. Surprisingly, nothing broke and the landers seem to work identically to me.If that is the case, can I safely just delete all JS files, check to make sure the page still works and then upload to my servers?

I've attached some images of the type of code I mean, but these are just the few examples I've seen so far. For all of them, I simply deleted the whole JS code and when checking it locally, nothing seems to have changed. It seems to easy to be true...






07-18-2017 10:11 PM #2 chris_climbs (Member)

Quote Originally Posted by lifter123 View Post
I've been ripping landers from Adplexity without editing the JS. I just removed any obvious links from the HTML file and removed any images that are hosted on someone else's site.
Yes, you read right about potential sneaky redirects; just running JS "as-is" from a ripped lander is generally a pretty bad idea.

Now that being said, I would say an overall, very small amount (proportionately) of landers I have ripped have had "sneaky" code in them, as opposed to just standard affiliate scripts, but there's no point to winging it and just hoping for the best.

Quote Originally Posted by lifter123 View Post
For all of them, I simply deleted the whole JS code and when checking it locally, nothing seems to have changed. It seems to easy to be true...
That's a great strategy. If you spend enough time with affiliate scripts, and maybe brush up your JS a little bit, you should be able to glance through ANY and EVERY line of javascript in a lander to look for suspicious things. This is what I do, and I've never had my traffic sneakily stolen. I suggest you replace any included external libraries (jQuery, etc. ) with your own clean copies, or even better, with official CDN/cloud-hosted copies. I personally replace most affiliate scripts with my own versions (for getURLParameter, etc) just because I know exactly how mine work and how they might break, though things like simple, obviously benign date scripts, etc. I usually leave alone.

Anything obfuscated/confusing, or that I don't understand, I delete the entire thing, then open the lander and click around to see if all works as it should. I've seen some tricker things, where once you delete one thing, it breaks the lander, but one can generally work their way around this with light debugging. In the worst case, you can usually just go rip a different version of the lander.

For the most part, it really is that simple...


07-19-2017 08:14 AM #3 lifter123 (Member)

Quote Originally Posted by chris_climbs View Post

Now that being said, I would say an overall, very small amount (proportionately) of landers I have ripped have had "sneaky" code in them, as opposed to just standard affiliate scripts, but there's no point to winging it and just hoping for the best.
How do you know this for sure? I always click through from my LPs to the Voluum link (multiple times) while testing to make sure it works. Never found any sneaky redirects there myself, but I thought there could be ways of hiding it even better.


07-19-2017 04:13 PM #4 chris_climbs (Member)

Well, this is purely from my own anecdotal experience ripping landers, so sure, YMMV. I've ripped and cleaned a whole bunch (hundreds) from Adplexity and manual spying the last 6 months, and I've personally only seen such sneaky scripts a handful of times.

If you look through EVERY line of JS, and don't leave anything in the lander that you don't understand, there's not much to go wrong. Of course, this requires some baseline knowledge of javascript. If you're still worried, you may want to open your dev tools and watch the HTTP requests as you click around, refresh the page, etc. and make sure there are no requests or redirects to any servers that the page should not be communicating with.


07-20-2017 03:39 AM #5 erikgyepes (Moderator)

If it not breaks the LP you should be fine.

Just make sure you can clickthrough to the offer and test it several times.

The process I used and it worked well for me is that I remove most of the scripts I don't know and after I introduce my own scripts that I know for sure are verified.

Also never use local jQuery included in the LP, but link to the CDN, same applies for any other libraries.


07-20-2017 07:15 AM #6 deetei (Member)

I am having the same issue as ripping landers from Adplexity. I just simply detect any script with "http" in the main file and replace with my own. I do not have much knowledge over some JS files.

Recently, I upload the two landers without removing the old JS files since I test the whole campaign and it the lander directs me right to my offer. Then I assume that there is nothing wrong here.

Howerver, looking at the stat, I see something suspious as the CTR is so high that it cannot be ignored, though the conversion is only 1 for each lander. I wonder if those ones are "good landers" or "something" is going wrong here.

Here is the screenshot of that

Click image for larger version. 

Name:	123.png 
Views:	146 
Size:	11.3 KB 
ID:	16004


Tien


07-20-2017 07:27 AM #7 fjk87 (Veteran Member)

@deetei looks like a JS backbutton script which sends the user to the offer as soon as he hits the back button to me.


Home > Technical & Creative Skills > Programming, Servers & Scripts