Home > The Newbie Zone > Questions and Answers

Blocking users that don't come from tracking URL? (6)


03-03-2016 06:47 AM #1 spicyprinter (Member)
Blocking users that don't come from tracking URL?

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?


03-08-2016 02:34 AM #2 xxf8xx (Member)

This should do it:

Code:
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');
    }


03-08-2016 05:09 AM #3 spicyprinter (Member)

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 Voluum tracking link?


03-08-2016 09:40 AM #4 xxf8xx (Member)

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 Voluum then that data will be there unless someone manually adds something like "voluumdata=blahblah" to the query string.


03-08-2016 12:44 PM #5 ted_tikoun (Member)

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 Voluum + a JS script directly ?


03-08-2016 12:58 PM #6 xxf8xx (Member)

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.


Home > The Newbie Zone > Questions and Answers