Hi guys,
Anyone know where I can find a script that blocks a user that hasn't browsed via my tracking link or perhaps that hasn't got a token in the URL of some sort?
This should do it:
function getURLParameter(name){
if(name=(new RegExp('[?&]'+encodeURIComponent(name)+'=([^&]*)')).exec(location.search))
return decodeURIComponent(name[1]);
}
if(getURLParameter('voluumdata') == "" || typeof getURLParameter('voluumdata') == 'undefined')
{
document.body.style.display = 'none';
document.location.replace('http://safeURLhere.com');
}
Wow! This would be amazing if it's that simple.
Could you elaborate briefly on how it works and what is required in the URL to bypass as a
The function at the top is used in all of my landers. It separates the stuff in the query string for me to easily have access to, so I can output any of that info. The second part uses that function to see if any "voluumdata" is found in the query string because if you came from
Thx for this script, do u know how we can redirect people that are using scrapped links from spytool ? Do we need to use PageLock script or something like that or can we handle it with a token on
The easiest thing you can probably do is redirect the users if they are not from the correct geo, but good luck stopping the spy tools from finding you. There's really no point in trying anyway unless you are making xxxx/day from a super unique angle or something. Just my opinion of course as I'm still new to this but I just don't think we need to be spending time blocking spy tools unless people are actually ripping our camps.