Using Cloudflare worker to generate host list from firebog to keep updated.

Overview

AdGuardCloudflareHostGenerator

Use a cloudflare worker to generate a up to date list from FireBog's ticked list found at https://v.firebog.net/hosts/lists.php?type=tick

Demo URL

Steps to setup a free cloudflare worker

  • Sign up for a cloudflare account (free) at cloudflare.com
  • On the left hand side bar, click on the Workers tab.
  • Click on the Create a Service button.
  • ^ You may need to setup a sub-domain first (if this is your first time), make sure you select the free tier after you pick a unique sub domain.
  • Give your new service a name, leave it on http handler and click "create service" in the bottom right.
  • Click on the blue "Quick Edit" button in the Resource tab.
  • Copy and paste the worker.js from this repo into the left hand script editor.
  • Click "Send" once on the right hand side to test that it works.
  • Click on the "Save and Deploy" button and you are all set.
  • Copy the URL for your new service into your AdGuard Home block list.

Requirements:

  • Support AdGuard Home with list.
  • Make sure list is up to date when AdGuard checks.
  • Make sure it supports the free tier of cloudflare (don't spend money on this).
  • Make sure girlfriend doesn't get mad her sites are blocked (used ticked list).
  • Rewrite list responses to be more AdGuard looking @@xxx.com^
  • Verify entries in responses are in AdGuard format
  • Improve fetch time without going over max connection limit (Promise.WaitAll won't work but could do batches).

Next Steps

  • Create a white list re-write version for AdGuard Home

Whitelists

You might also like...

Airtable + Cloudflare Workers URL Shortener 🌀

Airtable + Cloudflare Workers URL Shortener 🌀

tableflare Airtable + Cloudflare Workers URL Shortener 🌀 Quick Start Airtable Generate your Airtable API key from your account dashboard: https://air

Oct 16, 2022

Build your Cloudflare Workers with esbuild.

build-worker Bundle your Cloudflare Worker with esbuild instead of webpack. (It's ridiculously faster!) Wrangler v1 uses webpack. Wrangler v2 is using

Oct 24, 2022

Store and Deliver images with R2 backend Cloudflare Workers.

Store and Deliver images with R2 backend Cloudflare Workers.

r2-image-worker Store and Deliver images with Cloudflare R2 backend Cloudflare Workers. Synopsis Deploy r2-image-worker to Cloudflare Make a base64 st

Jan 3, 2023

generate statistics on the number of audience minutes your site is generating, and if readers make it to the end of your screeds

generate statistics on the number of audience minutes your site is generating, and if readers make it to the end of your screeds

audience-minutes generate statistics on the number of audience minutes your site is receiving, and if readers make it to the end of your screeds. β€œIf

Dec 28, 2022

Nodejs Background jobs using redis.

Nodejs Background jobs using redis.

node-resque: The best background jobs in node. Distributed delayed jobs in nodejs. Resque is a background job system backed by Redis (version 2.6.0 an

Jan 3, 2023

A simple package for single or batch image download and conversion using node streams.

image-batch-download A simple package for basic image downloading and processing. Supported formats: JPEG PNG WebP Installation With Yarn: yarn add im

Jan 2, 2022

Connect to a Postgres database from a Cloudflare Worker, using Cloudflare Tunnel

Cloudflare Workers Postgres Client This is an experimental module. Heavily based on cloudflare/worker-template-postgres, but cleaned up and bundled in

Dec 22, 2022

Use Cloudflare Workers Cron Triggers to keep your Hetzner Cloud Firewall allowing the latest list of Cloudflare IPs, or any other lists!

Hetzner Cloud Firewall automation with Cloudflare Workers Heavily inspired by xopez/Hetzner-Cloud-Firewall-API-examples, this repository holds a Cloud

Dec 17, 2022

Cloudflare Worker that will allow you to progressively migrate files from an S3-compatible object store to Cloudflare R2.

A Cloudflare Worker for Progressive S3 to R2 Blog Post: https://kian.org.uk/progressive-s3-to-cloudflare-r2-migration-using-workers/ This is a Cloudfl

Dec 30, 2022

You can use this CLI Tool to clean your iOS and Android projects and keep them updated.

You can use this CLI Tool to clean your iOS and Android projects and keep them updated.

Mobile App Cleaner You can use this CLI Tool to clean your iOS and Android projects and keep them updated. This tool automatizes these items below; Cl

Mar 19, 2022

A template for WebSockets powered Cloudflare Worker project using graphql-ws

🚑 graphql-ws on Cloudflare Workers A template for WebSockets powered Cloudflare Worker project using graphql-ws. The worker serves the following rout

Dec 18, 2022

Send emails using Cloudflare Worker, for free.

Email API for Proselog. Not intended for use outside of Proselog, but it should work with any worker, without any configuration. import { sendEmail }

Nov 7, 2022

A Cloudflare Worker for fetching data from Twitter User API.

cloudflare-worker-twitter This is a Cloudflare Worker for fetching data from Twitter User API. ❔ About this project I created this Worker to hide my A

Oct 1, 2022

Easily redirect one entire domain to another with a serverless Cloudflare Worker.

Easily redirect one entire domain to another with a serverless Cloudflare Worker.

Domain Redirecting with Cloudflare Workers Easily redirect one entire domain to another with a serverless Cloudflare Worker. All paths and other data

Dec 11, 2022

A Cloudflare Worker that translates TeX to SVG

A Cloudflare Worker that translates TeX to SVG

TeX SVG Worker A Cloudflare Worker that translates TeX to SVG.

Jan 9, 2023

A cloudflare worker to use the user-agent for ~~rickrolling~~ without a discord embed

nextcord.gay A cloudflare worker to use the user-agent for rickrolling without a discord embed Build npm run build Find the output in ./dist/worker.mj

Oct 4, 2022

Cloudflare worker function to update github bio automatically with leetcode and codeforces profile stats πŸš€

Stats check πŸ”’ Cloudflare worker function to update github bio automatically with leetcode and codeforces profile stats πŸš€ You can see it in action he

Feb 15, 2022

A cloudflare worker based REST API for your R2 bucket.

A cloudflare worker based REST API for your R2 bucket. Usage: Change the bucket_name and preview_bucket_name in wrangler.toml if you want. Set ENCRYPT

Nov 7, 2022
Owner
Jake Steele
Jake Steele
Cloudflare Worker that will allow you to progressively migrate files from an S3-compatible object store to Cloudflare R2.

A Cloudflare Worker for Progressive S3 to R2 Blog Post: https://kian.org.uk/progressive-s3-to-cloudflare-r2-migration-using-workers/ This is a Cloudfl

Kian 29 Dec 30, 2022
Send emails using Cloudflare Worker, for free.

Email API for Proselog. Not intended for use outside of Proselog, but it should work with any worker, without any configuration. import { sendEmail }

Proselog 65 Nov 7, 2022
Easily redirect one entire domain to another with a serverless Cloudflare Worker.

Domain Redirecting with Cloudflare Workers Easily redirect one entire domain to another with a serverless Cloudflare Worker. All paths and other data

Erisa A 19 Dec 11, 2022
Cloudflare Worker to make a R2 Bucket public!

r2-public-worker A Cloudflare Worker to make your R2 bucket public! Minimum Requirements Cloudflare Account wrangler >= 2.0.2 Note: Ensure you are usi

Cole Mackenzie 20 Sep 19, 2022
A tiny utility to asynchronously drive a namespace exposed through a Worker.

proxied-worker Social Media Photo by Ricardo Gomez Angel on Unsplash A tiny utility to asynchronously drive a namespace exposed through a Shared/Servi

Andrea Giammarchi 43 Dec 8, 2022
Redirect requests of current origin to another domain with Service Worker.

Service Worker to Redirect Origin This is a tool for your static website which could intercept all GET requests of the origin domain and redirect them

Menci 9 Aug 28, 2022
A tool library for handling window && iframe && worker communication based on the JSON RPC specification

rpc-shooter A tool library for handling window && iframe && worker communication based on the JSON RPC specification δΈ€δΈͺ基于 JSON-RPC θ§„θŒƒη”¨δΊŽε€„η† window && if

θ‡ΌηŠ€ 89 Dec 20, 2022
βš™οΈ Offline-capable Astro apps via SWSR (Service Worker Side Rendering)

Astro-service-worker βš™οΈ Offline-capable Astro apps via SWSR (Service Worker Side Rendering) astro-service-worker will take your Astro SSR project, and

Pascal Schilp 41 Dec 4, 2022
Type-safe and Promisified API for Web Worker and Iframe

?? You can help the author become a full-time open-source maintainer by sponsoring him on GitHub. typed-worker Install npm i typed-worker Usage Create

EGOIST 189 Dec 31, 2022
slash-create with Cloudflare Workers template

/create with Cloudflare Workers A slash-create template, using Cloudflare Workers. Getting Started Cloning the repo You can either use degit to locall

Snazzah 13 Jan 3, 2023