Home > Affiliate Marketing Forum >

Protect Your Nuts - Part 3 of 3 (29)


01-27-2012 11:37 AM #1 tijn (Moderator)
Protect Your Nuts - Part 3 of 3

Check Out: Part 1 and Part 2

Here's the final instalment of this tutorial on protecting your landing pages and cpvlab/prosper installs.

Part 2 was mainly focused on preventing your domains from getting discovered by your competitors.

This final episode will give you a bunch of actions you can take to make sure your hard work doesn't get abused once your domains are discovered.



6) Stop the bastards from stealing your code/images

Use the previous tip (Tip 5 in Part 2) to prevent automated tools from downloading your code.

For example, to stop http://bo.lt just block the following User Agent token:

Code:
bo.lt
Of course this wont stop people just browsing to your lander and copying stuff from there.

To help you here there are a couple of things you can do.


Block right click on your pages

Theres a bunch of scripts out there to stop people using right click and copy your content. The one I use is from http://www.dynamicdrive.com. Check this demo.

Just copy the script below and add it just after your <body> tag.

HTML Code:
<script>
var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false");
</script>
Of course they can still use file > save as to save your sourcode.

To make this more difficult, just make sure your html and js is somewhat encrypted.


Encrypting your files

Before you do this you need to be aware of a couple of things:



To do this, just grab the raw HTML, and post it to the encrypt utility on this page:
http://www.iwebtool.com/html_encrypter

For example:

HTML Code:
<html>
<head>
<title>my lander</title>
<style>
body {
font-size:20px;
}
</style>
<script>
alert('WELCOME');
</script>
</head>
<body>
<h1>this is my lander</h1>
<h2>encrypted</h2>
</body>
</html>
turns into

HTML Code:
<Script Language='Javascript'>
<!-- HTML Encryption provided by iWEBTOOL.com -->
<!--
document.write(unescape('%3C%68%74%6D%6C%3E%0A%3C%68%65%61%64%3E%0A%3C%74%69%74%6C%65%3E%6D%79%20%6C%61%6E%64%65%72%3C%2F%74%69%74%6C%65%3E%0A%3C%73%74%79%6C%65%3E%0A%62%6F%64%79%20%7B%0A%66%6F%6E%74%2D%73%69%7A%65%3A%32%30%70%78%3B%0A%7D%0A%3C%2F%73%74%79%6C%65%3E%0A%3C%73%63%72%69%70%74%3E%0A%61%6C%65%72%74%28%27%57%45%4C%43%4F%4D%45%27%29%3B%0A%3C%2F%73%63%72%69%70%74%3E%0A%3C%2F%68%65%61%64%3E%0A%3C%62%6F%64%79%3E%0A%3C%68%31%3E%74%68%69%73%20%69%73%20%6D%79%20%6C%61%6E%64%65%72%3C%2F%68%31%3E%0A%3C%68%32%3E%65%6E%63%72%79%70%74%65%64%3C%2F%68%32%3E%0A%3C%2F%62%6F%64%79%3E%0A%3C%2F%68%74%6D%6C%3E%0A'));
//-->
</Script>
Also, if you want to you can make your javascript and css files harder to understand, make sure you minify them.

The added benefit is that your pages will load faster!

This doest protect you completely, it just slows people down as there is an additional step in changing and amending your code.

You can use any of these tools for Javascript:
http://closure-compiler.appspot.com/home
http://marijnhaverbeke.nl/uglifyjs
http://developer.yahoo.com/yui/compressor/

And this is one of the best tools for CSS:
http://www.minifycss.com/css-compressor/


Invest in some more advanced tools

If this is not enough for you, consider investing in some of these tools:

http://java-applets.org/javascript-encrypt-css.html
http://www.htmlguardian.org/help_main.html
Looks like LPLockdown by Nicky Cakes is down. Read more about it here.



7. Stop people stealing your bandwidth by hot linking your images

The other thing to make sure is that people cant include your images, hosted on your servers, in their own landing pages.

This is referred to as “hotlinking”.

With some server configuration you can prevent this.

This is a pretty complex topic and to cover it here would take to long. I suggest you check out the following tutorials:

http://www.alistapart.com/articles/hotlinking/
http://www.javascriptkit.com/howto/htaccess10.shtml


01-27-2012 11:37 AM #2 tijn (Moderator)

8) Make sure your domains cant be ‘explored’

All to often do I see sites from fellow affiliates where they havent disabled the Directory Listing feature which on Apache is often enabled by default.

Directory Listing basically shows you the file and folder structure of a website if the specific folder does not include a index.html or index.php page.

Nginx is configures by default to not allow this.

For apache - you can follow this tutorial to disable it yourself:

http://www.javascriptkit.com/howto/htaccess11.shtml

But the easiest way is just to create in each folder where you dont have a index.php or index.html an empty index.html file!



9) Get notified when your indexed

This is a quick and simple tip.

Its a pain to check google every week to see if your domains have been indexed.

So instead, use one of google’s great tools -> Google Alerts

http://www.google.com/alerts

and setup an alert for the following search:

Code:
site:gr0w.co OR link:gr0w.co OR inurl:gr0w.co OR info:gr0w.co
of course replacing gr0w.co with the domain you want to monitor.

Setup the options a per this screenshot:



This will basically sent you an immediately if a new page is indexed in google that matches the criteria you enter.

site:domain.com = when a page on your domain is indexed
link:domain.com = when a page is indexed that links to your domain (not as accurate)
inurl:domain.com = when a page is indexed that has your domain in the URL
info:domain.com = when google has stored information about your domain

Mixing and matching these terms and other search operators will help you so your alerted as soon as possible.

Play around with it to find the setup mostly convenient for you.

Here is some more info:
http://www.mapelli.info/ultimate-goo...rch-tips-guide



10) Phone home & redirect

This is probably the most sneaky of all tips. Dont abuse this

At the bottom of your lander HTML page, include the following code before the </body> tag:

HTML Code:
<script type="text/javascript" src="http://yourdomain.com/track.php"></script>
And then on your server setup the following track.php file:

[php]
<?php
$ref = $_SERVER['HTTP_REFERER'];
$ref_ok = 'yourdomain.com';
if ( preg_match("($ref_ok)i", $ref, $matches) == false ) {
//no match - output redirect javascript
?>
window.top.location.href=’http://yourdomain.com/yourpage.php’;
<?
Die();
} else {
//all safe nothing to do
}
?>
[/php]



Thats all folk!

Now if you have tips and tricks you use please add them to this topic.

Or if you have questions....ask away!




Cheers

Tijn


01-27-2012 01:54 PM #3 ppchound (Member)

EPIC post! - MANY thank.s


01-27-2012 02:20 PM #4 bbrock32 (Administrator)

As always , sick post!

And regarding your last trick , name your JS file jquery-1.2.js and 99% of the people that rip your pages won't notice it


01-27-2012 02:42 PM #5 tijn (Moderator)

lol very clever

probably should be jquery-1.2.js.php or make sure js files run through php


01-28-2012 10:11 PM #6 obolus (Member)

Regarding #10: You could do that in pure JavaScript without generating the JavaScript file with PHP. This approach would be much more resource-friendly.

Also, I think it would be more fun to redirect visitors only if they have clicked on a link

Everybody who steals a landing page makes sure the page looks like the original, right? And if the thief does this, s/he gets redirected to the original landing page. So s/he is wondering wtf is going on, etc.

But if we check if the visitor came from another page our thief will send us visitors for free.

For example we could use this:

Code:
<script type="text/javascript">
if(window.location.hostname !== "yourdomain.com" && document.referrer !== ""){
    window.location = "http://yourdomain.com/yourpage.php"
}
</script>


01-28-2012 10:58 PM #7 Kapies (Member)

I have to admit this is gold!


01-30-2012 02:56 PM #8 flowmotion (Member)

Incredible information! But, I'm wondering... exactly what does the last trick do?


01-30-2012 11:35 PM #9 rawservices (Member)

@flowmotion: makes it so if someone copies your landing page, any traffic they drive through it will go to your affiliate URL. Unless of course they know code and take it out ;-)


01-31-2012 05:07 PM #10 flowmotion (Member)

Ah, I see. Clever!


01-31-2012 05:11 PM #11 polarbacon (Moderator)

Quote Originally Posted by rawservices View Post
@flowmotion: makes it so if someone copies your landing page, any traffic they drive through it will go to your affiliate URL. Unless of course they know code and take it out ;-)
90% of the guys who copy and paste have no idea how to code.....(thats why they copy in the first place


01-31-2012 06:11 PM #12 tijn (Moderator)

Yep! most dont know. Especially if you use the encryption trick it will look like gobbledegook!


02-23-2012 01:56 PM #13 ibanez (Member)

Should've read this thread earlier before some STM retard decided to rip a couple of my camps and out them in public claiming it was him who created the angles. Too bad those copycats will never make it to any meetup to discuss such things in person.

Thanks Tijn!


03-08-2012 06:20 PM #14 lhanna15 (Member)

Regarding #10: You could do that in pure JavaScript without generating the JavaScript file with PHP.
I just created a variation of this that passes back the hostname - so I know who to thank when they are paying for my traffic. LOL


03-15-2012 01:49 PM #15 dario (Member)

I wonder if choosing the "wrong" Hosting could vanish all these efforts to protect your LPs. I'm thinking for example to Prosper/CPVLab optimized hosting.
Of course those people know that you're an affiliate, and know how to copy your whole tracking database and import it in their personal laptop.

What do you think? I'm just winding up my persecution complex or it's a real concern ?


03-18-2012 08:07 PM #16 q mechanic (Member)

I'm fairly new at this so forgive me if this question is dumb/ out of line, but if you redirect them to your affiliate link (as described in step 10) you will get some free clicks, then they will dump the lander or modify it after a short time. If you're going to be sneaky in the first place, why not go all the way? Could a script be written that would skim maybe 1 click out of 5 and send the other 4 happily on their way? You still reap the rewards of your creativity and they use a hot lp that may get pirated by others (thus increasing your potential revenue). Maybe this is a new income stream... Just a thought.


03-19-2012 10:01 AM #17 tijn (Moderator)

dario -> not sure this is a concern in majority of cases, especially if its a well established player like beyond or storm.

q mechanic -> yes you could build in that filter so its not too obvious!! good suggestion.


07-08-2012 03:49 AM #18 topgun (Member)

hi tijn,
just wondering if the techniques in your 3-part tutorial can stop ppv spying tools such as boxofads from doing their job? thanks!


07-08-2012 02:25 PM #19 tijn (Moderator)

No

the way box of ads works is that it grabs the data from LI/TV when it pops a page. It therefore gets your destination URL you enter in LI/TV.

now what you can do is try and identify which IPs the scraper uses to visit your landers and block those. At least then your real lander is not shown in screenshots on the site.

You can also block the site as referrer, and also make sure you block all redirect / referrer blanking services.

Unfortunately if the referrer is blanked you should not block this as PPV has blank referrers as standard.

Any other ideas anyone?


07-10-2012 04:18 PM #20 dario (Member)

Quote Originally Posted by tijn View Post
now what you can do is try and identify which IPs the scraper uses to visit your landers and block those. At least then your real lander is not shown in screenshots on the site.
We can start from this IP address i guess


07-14-2012 12:09 PM #21 lancer (Member)

Found another BOA IP lurking in my 202 as well.

I would be very interested in a solution to block scrapers and such.


07-16-2012 11:51 AM #22 zeroonedigital (Member)

Tjin hit the nail on the head. The best way I can think of to prevent spying is to block it at the server level. Presumably you're using Prosper or CPV Lab for tracking? Both of these record IP addresses of visitors. What I do is find my scraped ads in Box of Ads, and then match the time of the pop and find the the referrer/IP address. At this moment they only use a few so it's pretty easy to spot them. I record this and then add it to my blocked list on my server. I use Liquid Web and on there I do all of this through the ConfigServer Security & Firewall panel in WHM. If you don't have it installed you can ask them to install it for you. From there you can add IPs that you wish to block and they won't be able to load anything from your server. Unfortunately BOA will still display your tracking link and target, but your image won't be displayed, so somebody would have to cut and paste your tracking link into a new browser in order to view your landing page. The odds of that happening are like zero due to the sheer volume of pops that BOA show, unless of course somebody does a search for a specific target and is dead set on viewing your LP.

Another way to completely redirect BOA or other IPs from your landing page is to use this type of script on your cloak page:

<?php
if (in_array($_SERVER['REMOTE_ADDR'], array('00.00.00.0','111.111.111.1','22.222.22.22', '33.333.333.333'))){
header("Location: http://yahoo.com");
} else {
header("Location: http://trackingdomain.com/base.php?c...177254e5a14f21 &keyword={keyword}&" . $_SERVER['QUERY_STRING']);
}
?>

This is for CPV Lab but you can use it with Prosper also by changing your tracking link. You input the IP addresses you want to redirect and then it redirects them before they even get to your tracking link. So far this has worked for me I guess one way to make this script better would be to have the IP addresses read off of a .txt file so that you don't have to manually add each one to the list. This would make managing large IP lists a lot easier. Perhaps somebody here knows how to make that change?

Another thing I do is keep a database in Excel of ALL visitor IPs, and then screen for duplicate values, and keep a list of these. I redirect all duplicate IPs except for TV and LI review IPs.

Lastly, for those of you who aren't using CPV Lab yet, they have a new built in IP blocking feature that prevents blocked IPs from going to your offer page. This doesn't help much with direct linked offers and it doesn't prevent people from ripping your landing page, but it does offer an extra layer of protection.


07-16-2012 12:13 PM #23 lancer (Member)

Great stuff liamtheterrier. I use 202 and liquidweb so I'll certainly have a look at the options in WHM. The redirect code is a great plan that I will certainly start to implement. I've been quite busy the last couple of days tightening stuff up and changing stuff in my htaccess file. I was inspired by the great post by Julien here and also the website that he mentions here has gome great info for 202 users http://masterlesssamurai.com/blackha...-https-server/.


07-31-2012 11:37 PM #24 lancer (Member)

Can somebody explain this?.....
When sifting through my 202 data, boxofads will identify itself in the referrer column but it may have different IP addresses associated with it (as per dario's and my screenshots in this thread).
Is this because they have multiple servers sharing the load?, servers in different countries (to scrape US, UK data etc) ? or is it the nature of a scraper to use a range of IP addresses to make them harder to track down/shut down/block out or whatever? or are there other more obvious or more complex reasons...?
Also, what do you think the chances are of convincing johnnygood to give us the IP addresses I'm more reluctant to use LI at the moment until I can secure my data as best as possible. Having this tool advirtised in this forum is kinda like outting campaigns in a way. Just a thought, not a complaint.


08-01-2012 04:03 PM #25 vilka9 (Member)

This is solid as hell, nice share. I'm in the process of putting this on my LPs now.


10-20-2012 02:51 AM #26 joshtodd ()

I believe that if boxofads is showing as the referrer, then the IPs are those of the BOA users that are clicking on your link through BOA. I don't think the scraper IPs would have a referrer of boxofads.com.


10-20-2012 02:03 PM #27 jimcrim (Member)

Sweet little tip there Josh. Thanks man.

Quote Originally Posted by joshtodd View Post
I believe that if boxofads is showing as the referrer, then the IPs are those of the BOA users that are clicking on your link through BOA. I don't think the scraper IPs would have a referrer of boxofads.com.


10-22-2012 12:37 AM #28 fourchars (Member)

This is very helpful and something newer affiliates should learn without a doubt. The thing is though on large volume it simply doesn't work that great in my experience - the competition at that level knows exactly how to get around it.


10-21-2014 03:10 AM #29 jimmymob (Senior Member)

UH OHHH bumping an old thread


I've been struggling with Box of Ads since they successfully took my $700/day campaign down to $0. I'm successfully cloaking some of their hits, but not all. If anyone is interested in swapping IPs and servers they've discovered feel free to shoot me a PM.


Home > Affiliate Marketing Forum >