How to avoid spaming bots

Methods of controlling spam bots

The following bots are filtered by default:

Yahoo

Googlebot

Mail.Ru Bot

YandexBot

BingBot

FaceBot

VK Share

AppleBot

TwitterBot

All other bots can affect the leads information in Dashly database while visiting your website. To filter out such leads, set the code:

  1. Check your unique visitors viewer agent information;

  2. Search for "bot" word in your leads agent information.

  3. If you find this word, then just set $ignore property defined.

We recommend you to set the common regularity of bots actions in order to block all at once. You can do it by filtering any atypical integration with your site that comes from framework.

Code example for GTM:

(function() {
    function Build(name, args) {
        return function() {
            window.dashlyasync.push(name, arguments);
        }
    }
    if (typeof dashly === 'undefined') {
        var s = document.createElement('script');
        s.type = 'text/javascript';
        s.async = true;
        s.src = '//cdn.dashly.io/api.min.js';
        var x = document.getElementsByTagName('head') 0;
        x.appendChild(s);
        window.dashly = {};
        window.dashlyasync = [];
        dashly.settings = {};
        var m = 'connect', 'track', 'identify', 'auth', 'open', 'onReady', 'addCallback', 'removeCallback', 'trackMessageInteraction';
        for (var i = 0; i < m.length; i++) dashly[mi] = Build(mi);
    }
})();

if (!/(Bot)/i.test(navigator.userAgent)) {
    dashly.connect('xxx')
}

You will block all lead agents with "bot" in a lead name by setting this code.

If it doesn't work, you can track this agent's activity to set the common regularity of bots actions on your site.

Powered by