weixin_33696106 2018-05-17 07:59 采纳率: 0%
浏览 32

阻止现场在线跟踪

1. Summary

I can't find how I can prevent online tracking on my site, if site visitors don't have any blocking tools.


2. Limitations

I have a static site. It would be nice if any solutions for JavaScript include JQuery and/or any other libraries; But not solutions for dynamic sites.


3. Details

I include to my site third-party frames, videos, widgets and so on, that can include analytics scripts. I don't want visitors of my site to be tracked. I want to block requests.

Visitors of my site can install some browser extension, that prevents online tracking. But users without browser extensions will be tracked.

Is it possible prevent analytics scripts for any modern browser, if the user doesn't have browser extensions or another method for blocking monitoring? If so, what can I do?


4. Example

Simply HTML file Sasha__JavaScript--BlockRequests.html:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="https://mc.yandex.ru/metrika/watch.js"></script>
    <script src="https://secure.quantserve.com/quant.js"></script>
    <script src="https://secure.gaug.es/track.js"></script>
</head>
<body>

</body>
</html>

I want it so that requests to any URL containing these domain names will be blocked (I use glob patterns in examples):

(In reality, I need to prevent online tracking also for some sites from this list)

It's possible, if visitor use Privacy Badger extension:

Privacy badger prevent tracking

Is it possible, if user doesn't have any extension?


5. Not helped

  1. I found an answer, how, possibly, I can disable own tracker. But I don't use any own analytics, all tracking scripts in my site include the third-party site elements.
  2. I found an answer, how, possibly, I can disable specific tracker. But:

    1. I can't find solutions for specific trackers
    2. It would be nice to have solution, that will not rely on the settings of a specific tracker
  3. I tried to read more about AJAX, AjaxQ, but I can't find how I can solve my problem.


6. Do not offer

  1. Please don't tell me, I shouldn't interfere with third-party monitoring. I don't approve of any tracking; see my opinion in article Why online tracking is bad.
  • 写回答

1条回答 默认 最新

  • lrony* 2018-05-17 08:07
    关注

    I think you could achieve this by using a Content Security Policy header script-src in the responses which only whitelists the allowed domains. That way the tracking scripts should be blocked by the browser.

    评论

报告相同问题?

悬赏问题

  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥16 mybatis的代理对象无法通过@Autowired装填
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示
  • ¥15 求三国群英传pl国战时间的修改方法
  • ¥15 matlab代码代写,需写出详细代码,代价私
  • ¥15 ROS系统搭建请教(跨境电商用途)
  • ¥15 AIC3204的示例代码有吗,想用AIC3204测量血氧,找不到相关的代码。