1. 程式人生 > >Is it possible to ignore internet bots? Documentation

Is it possible to ignore internet bots? Documentation

But wait, I don’t even know what a bot is!

If you stumbled onto this page by accident and don’t know what a bot is or are just curious to learn more, the following Wikipedia article provides an awesome summary: https://en.wikipedia.org/wiki/Internetbot.

Surprisingly, more than half of all web traffic is made up of bots. While a fraction of them are good bots with a regulated pattern, and therefore beneficial to all online businesses, the majority of them have malicious intents and are mostly unregulated.

Got it! So is it possible to ignore bad bots?

Now that we’re level-set on what a bot is, unfortunately Segment does not offer any out-of-the-box feature to filter/ignore bot traffic.

As such, you generally have two options:

Handle the filtering at a destination-level:some of our destination partners, like Mixpanel

, filter bots automatically. Whereas others such as Hubspotallow you to set up bot filtering manually. The advantage of filtering bots at a destination level is that it allows you to implement a robust, easy-to-maintain solution. However, as it pertains to Segment, the downside is that bot traffic will still
make it to Segment, affecting your MTU count.

Write custom logic that suppresses bot activity from being sent to Segment:if you want to prevent bot traffic from making it to Segment in the first place, another option is to write your own custom code. The logic, in pseudo-code, would look something like this if you know a particular characteristic of the bot traffic to filter out, such as the userAgent:

var robots = [useragent1, useragent2]
if ! window.navigator.userAgent in robots
  // send analytics calls
  analytics.track

The benefit here of course is that you would be able to limit the impact that bots have on your MTU count. However, on the flip side, it’s much harder to implement and maintain a custom filter.

If we see a massive MTU spike because of bots, can we apply for a refund?

As a matter of policy, we typically do not provide refunds for bot-related MTU spikes, as bot traffic is out of our control. However for extenuating circumstances, you can petition for a refund, assuming you’re able to provide proof of the bot’s effect.

I’m seeing a lot of browser traffic from Boardman; isn’t that from Segment?

We do indeed use Amazon’s hosting services, which are based in Boardman, Oregon. However many bots also originate from AWS in Boardman as well.

One way you can confirm whether or not traffic is coming from Segment vs. a bot is to check the userAgent of the inbound call. Ours is:

'Mozilla/5.0 (' + deviceModel.slice(0, -3) + '; CPU ' + osName + ' ' + 
osVersion.replace(/./g, '') + ' like Mac OS X) AppleWebKit/600.1.4 (KHTML, 
like Gecko) Version/' + osVersion.charAt(0) + '.0 Mobile/10B329 Safari/8536.25'

If you have any questions, or see anywhere we can improve our documentation, please let us know!

相關推薦

Is it possible to ignore internet bots? Documentation

But wait, I don’t even know what a bot is!If you stumbled onto this page by accident and don’t know what a bot is or are just curious to learn more, the fo

Pytorch-Is it possible to forward a tensor through a model (only Variable works)?

array arrays 圖片 operation hat near aci efi HR In Pytorch 0.4, I can forward a tensor through a model which is the same as Variable. imp

Ask HN: Is it possible to beat Google?

I’m working on efficient neural architecture search, and I think I can provide an offering that’s more effective than Cloud automl. I want to open source t

Is it possible to smell music, or taste words?

Is it possible to smell music, or taste words?When R. listens to music, his mind generates colours that do not exist in the “real” world as perceived by “n

Is it possible for BCH to fork?

Is it possible for BCH to fork?According to bitcoin cash news today, a digital currency exchange launched a trading platform called Voltaire.cash on Septem

How could it possible to assign an integer to string?

The snippet below could be compiled and run: C++ #include <map> #include <string> #include <iostream>

Is it immoral to only spend 50% of the time at work productively?

I feel that people often make a big deal of somebody using 5 minutes of Facebook a day during the boss' time. I have the feeling that the average person on

Ask HN: What is it like to run a VPN as a business?

Hello,I'm going to set up my own VPN on some cloud hosting provider, and I'm toying with the idea of turning it into a small business.Is there anything I n

Is it necessary to run the latest Git release?

Make sure your distro provides security updates for git. For instance, CVE-2018-17456 (another RCE via submodules bug) was recently disclosed and patched

Why is it OK to say you can’t do maths?

Mathematics staring us in the face in everyday life with Fibonacci numbers.Why is it okay to say you can’t do maths?Why is it not okay to say ‘I can’t read

Ask HN: Is it hard to get hired on F1 OPT?

not hard at all. usually you apply jobs and doing interviews on F1. Once landed a job, discuss a starting date with the employer and apply for opt, might t

Ask HN: Is it better to start a business in society or on the frontier?

I mean figuratively, of course.By "society" I mean how once something is invented legisliation gets put up all around it making it more difficult for upsta

Ask HN: Is it reasonable to assume all skype calls are recorded by Microsoft?

There's been an uptick in privacy policy articles lately targeted at Google. At work we always joke about how Microsoft and the Gov. has access to all Skyp

Ask HN: Why is it harder to learn new things the older you get?

The older I get the harder it is for me to focus and to learn new things. It’s almost painful. I still learn a lot but it is not as seemless as it used t

Artificial intelligence is complex, but we can't afford to ignore it

"Those who cannot learn from history are doomed to repeat it." In early September, the media went abuzz with news of Amazon becoming the second US company

Warning: date(): It is not safe to rely on the system's timezone settings.

bsp ron notice zone asi 警告 family one str PHP調試的時候出現了警告: It is not safe to rely on the system解決方法,其實就是時區設置不正確造成的,本文提供了3種方法來解決這個問題。 實際上,

It isn't possible to write into a document from an asynchronously-loaded

-a ext end oss statistic scrip views tracking app It isn‘t possible to write into a document from an asynchronously-loaded 今天遇到了一

php Warning phpinfo It is not safe to rely on the system

分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow 也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!        

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use

方法一:在程式碼中加入 date_default_timezone_set("PRC");即可 date_default_timezone_set('PRC')表示設定中國時區 方法二 :在配置檔案php.ini中修改配置 在php.ini里加上找到date.timez

Couldn't connect to Docker daemon at http+docker://localunixsocket - is it running?

    解決方法: 1.進入啟動檔案目錄 2.將使用者加入到docker 組   sudo gpasswd -a ${USER}  docker    3.使用root使用者   sudo su 4. 切換當前使用者   su ${US