Bring privacy to social media with LibRedirect
Private Viewing

© Photo by Dayne Topkin on Unsplash
The LibRedirect browser extension redirects YouTube, Instagram, Reddit, TikTok, and other services to alternative, privacy-friendly front ends.
In recent years, YouTube has evolved into a platform that offers both entertainment and countless educational and informative videos from all areas of life. Around 3.7 million new clips are added to YouTube every day. Large numbers of general IT and special Linux videos for every level of knowledge are also available on the platform.
But what looks like a great thing on the surface also has its downsides. In addition to the annoying ads, the fact is that YouTube links with your Google account causing an outflow of information that undermines your privacy. If you're wondering what kind of information is easily obtained from your browser, check out websites such as Device Info [1] or Am I Unique [2].
Of course, YouTube is not the only service that disregards privacy. Twitch, TikTok, Instagram, Imgur, Meet, and many other services also use information about you and your behavior online as hard currency. The privacy threat posed by these cloud-based platforms has sparked the development of alternative front ends – redirects that act as generic proxies between the server and your router at home.
Many of these redirects remove ads, hide unnecessary content, and prevent the ubiquitous tracking that companies use to generate user profiles. You can choose from around a dozen redirects, such as Invidious, FreeTube, or Piped to watch YouTube videos without direct contact with the Google servers. Tools like ProxiTok (for TikTok) and Proxigram (for Instagram) offer similar protections. These tools work because they stop the original website from seeing the connection from your web browser.
LibRedirect
A tool called LibRedirect [3] offers a single interface that groups 36 privacy-protecting alternatives to online services. LibRedirect redirects services such as YouTube, Instagram, Google Maps, Reddit, TikTok, and many others automatically or on demand to privacy-friendly front ends. You can even set LibRedirect as your default search engine, and it will redirect your requests to the privacy-friendly SearXNG meta search engine.
LibRedirect is a fork of the discontinued Privacy Redirect project. The current version is 3.0.2. If you need a redirect for X (formerly Twitter), just install release 2.8.1, which is available on GitHub. The subsequent versions removed Nitter [4] as an alternative because there were too many problems with X. However, users report that Nitter still works if you use LibRedirect 2.8.1 and a special Nitter instance.
LibRedirect, published under the GPLv3, is available as a browser extension for Firefox and Chrome and therefore also supports other web browsers that use the same render engine. Beyond the browser option, you can also use the LibRedirect Frontends Manager [5], which is available on Flathub for managing your redirects; the Frontends Manager allows quick access to some services, but otherwise it offers little in terms of functionality.
Provisioning
You can add LibRedirect directly in Firefox via the settings in the Addons and Themes page. Enter LibRedirect in the search mask (Figure 1). For Chromium-based browsers such as Chrome, Brave, Edge, Vivaldi, or Opera, download libredirect-version_number.crx
, which you then add in the browser's developer mode. This procedure also applies to ChromeOS [6]. On Android, you can integrate LibRedirect with Firefox for Android in the same way you would add it in the desktop version.

Using Firefox as an example, once the LiRedirect add-on is installed, click on the extension icon to open a list of frequently used services that you can redirect using a switch. At the end of the list below Settings, you will find all the supported services, with options to configure how to handle the service (Figure 2). The configuration includes selecting the desired front end if several alternatives are available for the service. Many services offer a number of instances in the Fediverse for you to choose from. Alternatively, you can set up your own instance online.
When you click on a YouTube link in the future, for example, it will take a little longer than usual to open. By default, the video opens in the alternative Invidious service instead of on YouTube (Figure 3). If the video takes too long to open, it can help to switch to another instance with less load.

You can define your preferences in the settings. Right-click on the link of a supported service to conjure up an entry for LibRedirect, where you can choose whether you want to launch the original or the alternative (Figure 4). For convenient use of Invidious outside of LibRedirect, see the box entitled "Invidious Router."
Invidious Router
A tool called the Invidious Router [7], which was developed by GNU/Linux.ch, automatically redirects to a fast and currently available Invidious instance. The app is also persisted in the browser's context menu. Various options appear if you right-click on a URL (Figure 4).
Conclusions
Redirecting might not be the easiest solution, but it is still a good thing that services like LibRedirect exist. Once you start working with LibRedirect, it will take a while to find the services, instances, and preferences that suit you. Sometimes services stop working temporarily after an update. Keep in mind that it is in the interest of the original services to impair or completely prevent the use of these redirect tools. The best example of this is Nitter, as an alternative to X. Elon Musk had the API blocked after the Twitter takeover. LibRedirect is constantly tilting at windmills.
The only advantage of LibRedirect over the individual alternatives is that it combines management of all redirects in a single interface. Offering all alternatives in a single interface means that you can switch quickly if one of the detours does not work as desired. Any problems that occur with individual applications are not the fault of the LibRedirect developers.
The Predirect [8] extension is an alternative tool that redirects many common services, and it still supports X via Nitter, although it does not offer some of the configuration options available with LibRedirect.
Infos
- Device Info: https://www.deviceinfo.me
- Am I Unique: https://www.amiunique.org
- LibRedirect: https://libredirect.github.io/index.html
- Nitter: https://nitter.poast.org
- Frontends Manager: https://flathub.org/apps/io.github.libredirect.frontends-manager
- LibRedirect for Chromium: https://libredirect.github.io/download_chromium.html
- Invidious Router: https://gitlab.com/gaincoder/invidious-router
- Predirect: https://github.com/libreom/predirect
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

News
-
Gnome Developers Consider Dropping RPM Support
In a move that might shock a lot of users, the Gnome development team has proposed the idea of going straight up Flatpak.
-
openSUSE Tumbleweed Ditches AppArmor for SELinux
If you're an openSUSE Tumbleweed user, you can expect a major change to the distribution.
-
Plasma 6.3 Now Available
Plasma desktop v6.3 has a couple of pretty nifty tricks up its sleeve.
-
LibreOffice 25.2 Has Arrived
If you've been hoping for a release that offers more UI customizations, you're in for a treat.
-
TuxCare Has a Big AlmaLinux 9 Announcement in Store
TuxCare announced it has successfully completed a Security Technical Implementation Guide for AlmaLinux OS 9.
-
First Release Candidate for Linux Kernel 6.14 Now Available
Linus Torvalds has officially released the first release candidate for kernel 6.14 and it includes over 500,000 lines of modified code, making for a small release.
-
System76 Refreshes Meerkat Mini PC
If you're looking for a small form factor PC powered by Linux, System76 has exactly what you need in the Meerkat mini PC.
-
Gnome 48 Alpha Ready for Testing
The latest Gnome desktop alpha is now available with plenty of new features and improvements.
-
Wine 10 Includes Plenty to Excite Users
With its latest release, Wine has the usual crop of bug fixes and improvements, along with some exciting new features.
-
Linux Kernel 6.13 Offers Improvements for AMD/Apple Users
The latest Linux kernel is now available, and it includes plenty of improvements, especially for those who use AMD or Apple-based systems.