dvetech.fr

Here you should report unblocked ads, trackers, social media items, annoyances or leftovers from blocked content.

Moderator: EasyList Authors

Post Reply
casaper
New Member
New Member
Posts: 3
Joined: Sun Sep 16, 2018 3:26 am
Reputation: 0

dvetech.fr

Post by casaper » Sun Sep 16, 2018 4:03 am

Tracking script that sends useragent string and sets cookie

Code: Select all

||tracking-*.dvetech.fr^$script

User avatar
smed79
Liste AR Author
Liste AR Author
Posts: 13793
Joined: Sun Jan 17, 2010 4:00 am
Reputation: 141
Location: EasyList Forum

Post by smed79 » Sun Sep 16, 2018 4:52 am

rules#advertising

Provide an example site where we can see the tracking host.
•► Before posting, to find your answer fast, read Forum « RULES » and use « Search »
••► Don't post clickable links » use inline text bbcode notation « [ C ] » or « [ code ] »
•••► Use imgur.com, imgbb.com or vgy.me to upload your screenshots

casaper
New Member
New Member
Posts: 3
Joined: Sun Sep 16, 2018 3:26 am
Reputation: 0

Post by casaper » Sun Sep 16, 2018 4:02 pm

Code: Select all

https://www.arte.tv/de/videos/030273-682-A/arte-reportage/
XHR Request triggered by the script (formated with browsers inspect for readability):

Code: Select all

curl 'https://tracking-afr.dvetech.fr/track/viewContent?referer=https%3A%2F%2Fwww.arte.tv%2Fde%2Fvideos%2F030273-682-A%2Farte-reportage%2F&user_agent=Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_13_6)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F65.0.3325.183%20Safari%2F537.36%20Vivaldi%2F1.96.1147.64&tnEvent=viewContent&zone=801&cross_origin=1&billing_broker=external&dve_trk_id=e1ab7a09-9747-44b9-bd6e-8213396391fb' -H 'Pragma: no-cache' -H 'Origin: https://www.arte.tv' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,de-CH;q=0.7,de;q=0.6' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.183 Safari/537.36 Vivaldi/1.96.1147.64' -H 'Content-type: application/x-www-form-urlencoded' -H 'Accept: */*' -H 'Cache-Control: no-cache' -H 'Referer: https://www.arte.tv/de/videos/030273-682-A/arte-reportage/' -H 'Connection: keep-alive' -H 'DNT: 1' --compressed
{"code":200,"error":0,"data":{"dve_trk_id":"e1ab7a09-9747-44b9-bd6e-8213396391fb"}}
And the perpetuators request and script itself:

Code: Select all

curl 'https://tracking-afr.dvetech.fr/jstrack?action=viewContent' -H 'Pragma: no-cache' -H 'DNT: 1' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-GB,en;q=0.9,en-US;q=0.8,de-CH;q=0.7,de;q=0.6' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.183 Safari/537.36 Vivaldi/1.96.1147.64' -H 'Accept: */*' -H 'Referer: https://www.arte.tv/de/videos/030273-682-A/arte-reportage/' -H 'Connection: keep-alive' -H 'Cache-Control: no-cache' --compressed

var httpBuildQuery = function(a) {
    if ("undefined" === typeof a || "object" !== typeof a)
        return a = {};
    var c = "?", b = 0, d;
    for (d in a) {
        b++;
        var e = d
          , f = a[d];
        c = 1 == b ? c + (e + "=" + encodeURIComponent(f)) : c + ("&" + e + "=" + encodeURIComponent(f))
    }
    return c
}
  , getUrlParams = function(a) {
    var c = {}
      , b = decodeURIComponent(window.location.href.slice(window.location.href.indexOf("?") + 1));
    b = b.split("#")[0];
    b.split("&").forEach(function(a, b) {
        a = a.split("=", 2);
        c[a[0]] = a[1]
    });
    return a && a in c ? c[a] : c
}
  , setCookie = function(a, c, b) {
    var d = new Date
      , e = new Date;
    if (null == b || 0 == b)
        b = 1;
    e.setTime(d.getTime() + 864E5 * b);
    document.cookie = a + "=" + escape(c) + ";expires=" + e.toGMTString() + ";path=/"
}
  , getCookie = function(a) {
    a += "=";
    for (var c = decodeURIComponent(document.cookie).split(";"), b = 0; b < c.length; b++) {
        for (var d = c[b]; " " == d.charAt(0); )
            d = d.substring(1);
        if (0 == d.indexOf(a))
            return d.substring(a.length, d.length)
    }
    return ""
}
  , trackparams = getUrlParams(window.location.href) || [];
trackparams.referer = window.location.href;
trackparams.user_agent = navigator.userAgent;
var urltracker = "";
"undefined" !== typeof trackparams.t2c && "" != trackparams.t2c && (urltracker = trackparams.t2c);
"undefined" !== typeof trackparams.ext_code && "" != trackparams.ext_code && (urltracker = trackparams.ext_code);
"undefined" !== typeof trackparams.dve_trk_id && "" != trackparams.dve_trk_id && setCookie("dve_trk_id", trackparams.dve_trk_id, 30);
var cookie_dvetrkid = getCookie("dve_trk_id"), cookie_dvetracker = getCookie("dve_tracker"), wl = window.tnLayer[0] || [], qelem;
for (qelem in wl)
    trackparams[qelem] = wl[qelem];
trackparams.cross_origin = 1;
trackparams.billing_broker = "external";
"click" == trackparams.tnEvent && setCookie("dve_tracker", urltracker, 30);
"undefined" === typeof trackparams.transaction_id && "sale" == trackparams.tnEvent && (trackparams.transaction_id = Date.now());
var url = "https://tracking-afr.dvetech.fr/track/";
"undefined" !== typeof trackparams.env && ("dev" == trackparams.env && (url = "http://tn-afr.mcombrexelle.dev-track-web2.dve.groupejet.priv/track/"),
"preprod" == trackparams.env && (url = "http://tracking-afr-pp.dvetech.fr/track/"));
"" == cookie_dvetrkid ? trackparams.ask_dve_trk = 1 : trackparams.dve_trk_id = cookie_dvetrkid;
var request = new XMLHttpRequest;
request.open("GET", url + trackparams.tnEvent + httpBuildQuery(trackparams), !0);
request.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
request.onload = function() {
    if (200 <= request.status && 400 > request.status) {
        var a = request.responseText;
        JSON && (a = JSON.parse(a),
        "undefined" !== typeof a.data.dve_trk_id && setCookie("dve_trk_id", a.data.dve_trk_id, 30))
    }
}
;
request.onerror = function() {}
;
request.send();


Post Reply