Various rules lists, scripts, and other tools used to block nuisances from networks.
ad-blocking/
├── .github/ # GitHub configuration
│ ├── workflows/ # CI/CD pipelines
│ └── ISSUE_TEMPLATE/ # Issue templates
├── docs/ # Documentation
│ ├── api/ # API client documentation
│ └── guides/ # Usage guides
├── rules/ # Filter rules
│ ├── adguard_user_filter.txt # Main filter list
│ ├── Api/ # Rules API utilities
│ └── Config/ # Rule compilation config
├── scripts/ # Automation scripts
│ └── powershell/ # PowerShell modules
├── src/ # Source code
│ ├── api-client/ # AdGuard DNS API C# client
│ ├── filter-compiler/ # TypeScript filter compiler
│ ├── webhook-app/ # C# webhook application
│ └── website/ # Gatsby portfolio website
├── README.md # This file
├── SECURITY.md # Security policy
└── LICENSE # License file
- .NET 8.0 SDK - For C# components
- Node.js 18+ - For TypeScript compiler and Gatsby website
- PowerShell 7+ - For automation scripts
- AdGuard HostList Compiler - For filter compilation
-
Environment Variables: Create a
.envfile or set environment variables:ADGUARD_WEBHOOK_URL=https://linkip.adguard-dns.com/linkip/YOUR_DEVICE_ID/YOUR_AUTH_TOKEN SECRET_KEY=your-secret-key-here
See
.env.examplefiles in the project for templates. -
Install Dependencies:
# Install compiler dependencies cd src/filter-compiler npm install # Install website dependencies (optional) cd ../website npm install # Restore .NET packages cd ../webhook-app dotnet restore # Restore API client packages cd ../api-client dotnet restore
# Using TypeScript
cd src/filter-compiler
npm run build
node invoke-compiler.js
# Using PowerShell
cd src/filter-compiler
./invoke-compiler.ps1cd src/webhook-app
dotnet runcd scripts/powershell
./Webhook-Harness.ps1See the API Client Usage Guide and Examples.
The main AdGuard filter list for blocking ads, trackers, and malware. The rules list can be found here.
TypeScript-based compiler using @adguard/hostlist-compiler to compile and transform filter rules.
.NET 8.0 application for triggering AdGuard DNS webhooks with built-in rate limiting and resilience patterns.
C# SDK for the AdGuard DNS API v1.11. Auto-generated from OpenAPI specification with full async support and Polly resilience.
Gatsby-based portfolio website deployed to GitHub Pages.
The internet is full of nuisances, and this repository helps eradicate them from networks:
- Ads
- Trackers
- Malware
There are plenty of great apps that will help, but there is no one-size-fits-all solution, especially for:
- Smart devices (Echo, HomePod, etc.)
- Smart TVs
- IoT devices without installation capability
Permalink for quick tests: bit.ly/jaysonknight
- API Client README - API client overview
- API Client Usage Guide - Detailed usage instructions
- API Client Examples - Code examples
- API Reference - Full API documentation
Please see SECURITY.md for security policy and vulnerability reporting.
See LICENSE for details.