A .NET6 minimal API to act as a proxy in order to cache and provide Google fonts in compliance with GDPR (if hosted in EU)
GFontProxy.NET can be self-hosted or accessed via our free demo (no up-time guarantee).
Simply replace any https://fonts.googleapis.com/
with https://your-url.tld/
.
GFontProxy.NET will then download the corresponding css and fonts from Google and deploy them.
Since no PII is sent to google, this is GDPR compliant without the need for specific consent.
In order to use GFontProxy.NET you need to have Docker
and a webserver which can act as a reverse proxy (e.g. nginx
).
- Run the docker container using this command (CORS_ORIGIN is optional):
docker run -d -p {port}:80 -e WEBSITE_URL=https://your-url.tld -e CORS_ORIGIN=https://another-url.tld imitat0r/gfontproxy.net:latest
- Setup a reverse proxy from
https://your-url.tld
tohttp://localhost:{port}
@MrJustreborn - Initial inspiration for this project
@Fr3shlama - Hosting the Demo