Here's a trick to prevent competitors from running your stolen landing pages.
It's gonna be hard to prevent your landing pages from being ripped by other affiliates now that you have very good spy tools like Anstrex, AdPlexity, and AdSpy.
So even though it's very hard to hide your landing page from other affiliates, you can trick them into believing your landing page is broken. Most of the affiliates won't bother when they open a lander on their local computer and see it's broken. They just move on to the next lander.
Here's a piece of code that just does that:
if(location.protocol == 'file:') {
for(i=0;i<document.getElementsByTagName('img').length;i++) {
el = document.getElementsByTagName('img')[i];
el.src += 'undefined';
}
for(i=0;i<document.getElementsByTagName('div').length;i++) {
el = document.getElementsByTagName('div')[i];
console.log(Math.random(0,400));
console.log(i);
el.style.textAlign='left';
text = el.innerText.replace('e','?')
el.innerText = text;
}
}
So basically what it does is:
1. checking if the page is loaded locally
2. if yes, then break all images
3. then loops into all DIV elements and removes their markup inside.
Obviously, we don't want them to easily find out what this anti rip script is doing so we gonna obfuscate it using Base64 encoding:
eval(atob('aWYobG9jYXRpb24ucHJvdG9jb2wgPT0gJ2ZpbGU6JykgewoKICAgIGZvcihpPTA7aTxkb2N1bWVudC5nZXRFbGVtZW50c0J5VGFnTmFtZSgnaW1nJykubGVuZ3RoO2krKykgewogICAgICAgIGVsID0gZG9jdW1lbnQuZ2V0RWxlbWVudHNCeVRhZ05hbWUoJ2ltZycpW2ldOwogICAgICAgIGVsLnNyYyArPSAndW5kZWZpbmVkJzsKICAgIH0KCiAgICBmb3IoaT0wO2k8ZG9jdW1lbnQuZ2V0RWxlbWVudHNCeVRhZ05hbWUoJ2RpdicpLmxlbmd0aDtpKyspIHsKICAgICAgICBlbCA9IGRvY3VtZW50LmdldEVsZW1lbnRzQnlUYWdOYW1lKCdkaXYnKVtpXTsKICAgICAgICBjb25zb2xlLmxvZyhNYXRoLnJhbmRvbSgwLDQwMCkpOwogICAgICAgIGNvbnNvbGUubG9nKGkpOwogICAgICAgIGVsLnN0eWxlLnRleHRBbGlnbj0nbGVmdCc7CiAgICAgICAgdGV4dCA9IGVsLmlubmVyVGV4dC5yZXBsYWNlKCdlJywnPycpICAgICAgICAKICAgICAgICBlbC5pbm5lclRleHQgPSB0ZXh0OyAgICAgICAgICAgIAogICAgfQp9'));
Stay tuned for more "Anti Rip Scripts"...