Remove Disqus

Original link: https://blog.othree.net/log/2023/08/23/remove-disqus/

EFF Privacy Badger

A while ago, I sorted out the blog stuff, roughly what I did was:

  • Get rid of Google Analytics
  • Remove all SNS buttons
  • Get rid of Disqus
  • Change web font service

The first is to get rid of Google Analytic. In fact, I have been thinking about it for a long time. Part of the reason is that I don’t want to feed data to Google. The other reason is that the old Universal Analytic has just been disabled, so I must use GA4. So I took this opportunity to simply remove it, but I was still curious about which content is more read, so I spent some time researching web log analysis software , because I don’t want to have multiple services, and the old AWStats interface is really unacceptable now. So now I choose goaccess as a terminal tool to use, but it is actually quite powerful, with many options, and it can also be run as a service. In addition, if you still prefer front-end tracking, some friends on Twitter (now X) also recommended GoatCounter and umami , which are services written in golang and js respectively. There are open source and online services. There is a limited service quota. Of course, self-installation It is also possible, not surprisingly, you need a database.

The second is the SNS button. In fact, there were three buttons before, namely Google+, Facebook and Twitter. Then I used iframe to hang the buttons, so I don’t have to worry about various problems (privacy, security) of directly linking third-party js. However, Google+ took it away, and I actually couldn’t see the FB button because of the Firefox container. Later, I forgot the reason and took it away. In the end, only Twitter was left. It turned out that the Web Intent I used to hang the button was also missing. The modified button cannot be displayed in the iframe, so I simply removed all the rest, and finally left only a button that uses the Web Share API .

Then there is Disqus. In fact, the principle of the message system is simple and not difficult, but it is also very troublesome to do it. First, there must be a database, so many static web page generation tools will die first, and second, it must be capable. The ability to file spam, so the emergence of Disqus really fills a big gap. I used to like Disqus very much. After all, it is one of the best pioneers in this kind of demand. The company’s engineers also study 3rd party script seriously. Part of my work now is writing 3rd party scripts. Apart from being interested in this, I am also very impressed by the troubles of this thing, but the reality is that starting a company is still to make money, so slowly it is also Going in a direction I don’t like, I started to collect a lot of data, and some people even said that there were ads inserted, but other than that, a bigger reason is that the usage rate on my side is too low, if no one If it is used, it is only the visitor’s data being collected if it is hung up all the time, so I decided to unplug the entire echo block. Of course, the side effect is that some of the few messages before have disappeared.

Not two days after I removed Echo, I just saw the news that HackMD also removed Disqus. I followed the original tweet to find that there are actually many alternatives, such as cusdis , giscus and utterances using GitHub, etc. In fact, Wappalyzer There are also some alternatives on the Internet (and you can also see that the Disqus share is still very high).

In fact, there is another type of alternative, which is to support new protocols, such as ActivityPub and Webmention . When I first saw the solution of ActivityPub plus static website generator, I remembered that I had disappeared in the torrent of spam before. trackback mechanism, but the compatibility between the static website generator and ActivityHub is not so good. In fact, it is the same as the message system. It needs an API endpoint and a database, so there are not many options for supporting it, and related services and projects are also available. It is relatively immature and requires a lot of manual work ; another option is Webmention, you can refer to Jason’s ” Collecting blog community feedback through webmention “, which is basically a pure front-end solution that can be made through third-party services.

The last one is the web font. In fact, I didn’t want to adjust this part. I just finished the above changes and found that the website almost has no tracker. Only Google Fonts-related requests are left. Google Fonts has always been classified as a potential one. It is impossible to confirm whether the tracker was actually secretly used as a tracker. In short, I tried to find an alternative. At first, I thought about putting the file by myself, because I only used two English fonts, but the result The size difference is 10 times, and it can’t be done without further adjustments. At this time, I saw that Laravel switched to Bunny Fonts due to GDPR . I did a little research. Bunny.net itself is a CDN service provider, and Bunny Fonts is the main focus of no tracking. So GDPR is no problem. Another feature is that the interface is compatible with Google Fonts, that is to say, just change the domain name (in my case, there is still a CSP to modify).

Then the final result is the same as the picture above the article. Now most of the pages, EFF Privacy Badger ’s inspection results have no need to block anything. Only some articles have embedded Tweets or YouTube videos, it will still show that there are potential tracker.

This article is transferred from: https://blog.othree.net/log/2023/08/23/remove-disqus/
This site is only for collection, and the copyright belongs to the original author.