noisyboy
Super Contributor
Hey guys,
So I was browsing though some landing pages I downloaded earlier, and found this bot trap script on one of them. I don't know how this works, and how I could potentially use it with my landing pages. Can anyone help me here? Thank you!
"use strict";var botTrapUrl="https://domain/humanVisit/trap?visitId=",prodUrl="wss://domain.cc/open/visit/ws?visitId=",devUrl="ws://localhost:8080/open/visit/ws?visitId=";function uuid(){for(var e=[],o="0123456789abcdef",t=0;t<36;t++)e[t]=o.substr(Math.floor(16*Math.random()),1);return e[14]="4",e[19]=o.substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="-",e.join("")}function humanVisit(t,e,i,n,a,r){t.onopen=function(e){var o;r||(o={type:"visit",campaignId:i,placementId:a,trafficId:n},t.send(JSON.stringify(o)),grecaptcha.ready(function(){grecaptcha.execute("6Le51MkZAAAAANaUO8VnvcxJ1Y5gE2reiFTRhNWU",{action:"homepage"}).then(function(e){var o={type:"google",token:e};t.send(JSON.stringify(o))})}))},t.onmessage=function(e){console.log("Received
So I was browsing though some landing pages I downloaded earlier, and found this bot trap script on one of them. I don't know how this works, and how I could potentially use it with my landing pages. Can anyone help me here? Thank you!
"use strict";var botTrapUrl="https://domain/humanVisit/trap?visitId=",prodUrl="wss://domain.cc/open/visit/ws?visitId=",devUrl="ws://localhost:8080/open/visit/ws?visitId=";function uuid(){for(var e=[],o="0123456789abcdef",t=0;t<36;t++)e[t]=o.substr(Math.floor(16*Math.random()),1);return e[14]="4",e[19]=o.substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="-",e.join("")}function humanVisit(t,e,i,n,a,r){t.onopen=function(e){var o;r||(o={type:"visit",campaignId:i,placementId:a,trafficId:n},t.send(JSON.stringify(o)),grecaptcha.ready(function(){grecaptcha.execute("6Le51MkZAAAAANaUO8VnvcxJ1Y5gE2reiFTRhNWU",{action:"homepage"}).then(function(e){var o={type:"google",token:e};t.send(JSON.stringify(o))})}))},t.onmessage=function(e){console.log("Received