# Ajax.googleapis.com and fonts.googleapis.com blocking

**URL:** https://forum.yunohost.org/t/ajax-googleapis-com-and-fonts-googleapis-com-blocking/19540
**Category:** Discuss
**Tags:** english
**Created:** [April 16, 2022, 8:24am UTC](https://forum.yunohost.org/t/ajax-googleapis-com-and-fonts-googleapis-com-blocking/19540 "2022-04-16T08:24:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![LaVida479](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/l/22d042/32.png) [@LaVida479](https://forum.yunohost.org/u/LaVida479)
#### Post date: [April 16, 2022, 8:24am UTC](https://forum.yunohost.org/t/ajax-googleapis-com-and-fonts-googleapis-com-blocking/19540/1 "2022-04-16T08:24:11Z")

</div>

How do you keep Google from tracking you even if you block analytics, adsense, maps, etc, etc, etc?

I have a solution: 1 - Point [ajax.googleapis.com](http://ajax.googleapis.com) and [fonts.googleapis.com](http://fonts.googleapis.com) to 127.0.0.1 via the hosts file

2 - Start a local instance of Apache server and create two namevirtualhost’s named [ajax.googleapis.com](http://ajax.googleapis.com) and [fonts.googleapis.com](http://fonts.googleapis.com)

3 - Copy the libraries to the correct directories.

Copy jQuery to /ajax/libs/jquery/1.10.1/jquery.min.js  
Copy angular to /ajax/libs/angularjs/1.0.7/angular.min.js

And so on… get all the correct paths here: [Hosted Libraries &nbsp;|&nbsp; Google Developers](https://developers.google.com/speed/libraries/devguide)

now, while this works stationary, I would like all mobile devices to benefit from that too. Hence, I was thinking to utilize NextDNS on mobiles and point ajax and fonts to our yunahost. Any thoughts on doing so, or am I reinventing the wheel?

PS: kudos to [How to block Google API and Fonts from tracking you | BlackHatWorld](https://www.blackhatworld.com/seo/how-to-block-google-api-and-fonts-from-tracking-you.584591/)

---

<div class="post-metadata">

### Author: ![Mamie](https://forum.yunohost.org/user_avatar/forum.yunohost.org/mamie/32/1245_2.png) [@Mamie](https://forum.yunohost.org/u/Mamie)
#### Post date: [April 18, 2022, 8:01am UTC](https://forum.yunohost.org/t/ajax-googleapis-com-and-fonts-googleapis-com-blocking/19540/2 "2022-04-18T08:01:51Z")

</div>

This means work to do and you will need to maintain many libs.  
BUT other peoples have already done this 🙂

> **[Decentraleyes | Local CDN Emulation](https://decentraleyes.org/)**
>
> A web browser extension that emulates Content Delivery Networks to protect your privacy.

This is a browser add-on that will serve the most used javascript libraries directly.

And for more cleanlyness, you can use tools like µMatrix, where the default config is to block EVERYTHING not coming from the domain you are visitting (and decentraleyes provides white rules to unblock the scripts that will be from your own computer).

And looking for a link about uMatrix, I’ve found that the project is stopped.  
The addon still works but this is sad 😔

---

<div class="post-metadata">

### Author: ![LaVida479](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/l/22d042/32.png) [@LaVida479](https://forum.yunohost.org/u/LaVida479)
#### Post date: [April 24, 2022, 8:30am UTC](https://forum.yunohost.org/t/ajax-googleapis-com-and-fonts-googleapis-com-blocking/19540/3 "2022-04-24T08:30:46Z")

</div>

indeed, we do that on desktops. but how about mobiles?

---

<div class="post-metadata">

### Author: ![Mamie](https://forum.yunohost.org/user_avatar/forum.yunohost.org/mamie/32/1245_2.png) [@Mamie](https://forum.yunohost.org/u/Mamie)
#### Post date: [April 25, 2022, 7:07am UTC](https://forum.yunohost.org/t/ajax-googleapis-com-and-fonts-googleapis-com-blocking/19540/4 "2022-04-25T07:07:46Z")

</div>

Same thing.  
And if you use Google Chrome, switch to Firefox 😉  
(Few addons are available in Firefox mobile now, but decentraleyes is, and ublock origin too. On Chrome, even on desktop, tracking blockers are greatly limited due to… well… Google needing tracking for it’s money)
