# Johnshall/Shadowrocket-ADBlock-Rules-Forever

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/johnshall-shadowrocket-adblock-rules-forever).**

22,324 stars · 1,464 forks · other

## Links

- GitHub: https://github.com/Johnshall/Shadowrocket-ADBlock-Rules-Forever
- Homepage: https://johnshall.github.io/Shadowrocket-ADBlock-Rules-Forever/
- awesome-repositories: https://awesome-repositories.com/repository/johnshall-shadowrocket-adblock-rules-forever.md

## Topics

`adblock` `gfw` `proxy` `shadowrocket` `v2ray`

## Description

This project provides a comprehensive collection of curated configuration files and rule sets designed for the Shadowrocket proxy client. It functions as a centralized repository for managing network traffic, enabling users to implement granular routing policies, content filtering, and connection management across their devices.

The repository distinguishes itself by offering advanced traffic orchestration capabilities, including domain-suffix pattern matching and rule-based interception. It supports complex network configurations such as proxy group load balancing, custom DNS resolution, and real-time URL rewriting. By utilizing these declarative rule sets, users can enforce specific traffic behaviors, such as bypassing local network services or directing requests through designated proxy nodes based on domain or IP criteria.

Beyond basic routing, the project facilitates enhanced privacy and security through content filtering and encrypted traffic inspection. These features allow for the systematic blocking of advertisements, trackers, and malicious domains, while also providing the ability to modify web requests to improve service access and bypass regional restrictions. The configuration files are structured to be imported directly into the client to automate these network management tasks.

## Tags

### Networking & Communication

- [Declarative Traffic Rules](https://awesome-repositories.com/f/networking-communication/declarative-traffic-rules.md) — Provides structured configuration files to define complex traffic routing logic without modifying application code.
- [Proxy Routing Rules](https://awesome-repositories.com/f/networking-communication/network-infrastructure-routing/network-routing-traffic-management/network-traffic-management/proxy-routing-rules.md) — Provides granular control over network traffic by routing requests through proxies or direct connections based on domain and IP-based rule sets. ([source](https://cdn.jsdelivr.net/gh/Johnshall/Shadowrocket-ADBlock-Rules-Forever@release/README.md))
- [Proxy Configuration Rules](https://awesome-repositories.com/f/networking-communication/proxy-configuration-rules.md) — Offers curated domain and IP lists for blocking advertisements, trackers, and malicious content within proxy clients.
- [Rule-Based Proxies](https://awesome-repositories.com/f/networking-communication/rule-based-proxies.md) — Directs network traffic through specific proxy nodes or local connections based on domain, IP, or service-based rules.
- [Domain Traffic Filters](https://awesome-repositories.com/f/networking-communication/domain-traffic-filters.md) — Evaluates network requests against hierarchical domain lists to determine routing or blocking behavior.
- [Proxy Load Balancers](https://awesome-repositories.com/f/networking-communication/network-infrastructure-routing/network-proxying-tools/network-proxy-management/proxy-load-balancers.md) — Organizes network nodes into logical sets that automatically switch based on health checks and performance metrics.
- [Proxy Group Managers](https://awesome-repositories.com/f/networking-communication/proxy-group-managers.md) — Organizes network nodes into logical groups with automated health checks and latency-based switching. ([source](https://johnshall.github.io/Shadowrocket-ADBlock-Rules-Forever/))
- [Virtual Network Interfaces](https://awesome-repositories.com/f/networking-communication/virtual-network-interfaces.md) — Routes device-wide network traffic through a local virtual interface to enforce custom routing and security policies.
- [Traffic Filtering Rules](https://awesome-repositories.com/f/networking-communication/traffic-filtering-rules.md) — Implements declarative routing policies to manage proxy connections, bypass local traffic, and enforce ad-blocking.
- [Traffic Interception Rules](https://awesome-repositories.com/f/networking-communication/traffic-interception-rules.md) — Intercepts outgoing network requests at the system level to match them against predefined domain and IP patterns.
- [Traffic Routing Policies](https://awesome-repositories.com/f/networking-communication/traffic-routing-policies.md) — Applies pre-configured rule sets to manage connection behavior, including global proxying and region-specific routing. ([source](https://johnshall.github.io/Shadowrocket-ADBlock-Rules-Forever/sr_direct_banad.conf))
- [Tracking Parameter Removers](https://awesome-repositories.com/f/networking-communication/url-parameter-parsers/tracking-parameter-removers.md) — Modifies request headers and strips tracking parameters from web requests in real-time.
- [DNS Resolution](https://awesome-repositories.com/f/networking-communication/dns-resolution.md) — Configures custom DNS resolution and modifies web requests to improve privacy and bypass regional restrictions.
- [Proxy Configurations](https://awesome-repositories.com/f/networking-communication/proxy-configurations.md) — Excludes local network ranges and internal services from proxy processing to ensure direct connectivity. ([source](https://johnshall.github.io/Shadowrocket-ADBlock-Rules-Forever/sr_top500_banlist_ad.conf))
- [Local Bypass Configurations](https://awesome-repositories.com/f/networking-communication/local-proxy-services/local-bypass-configurations.md) — Excludes local traffic and internal services from proxy processing to maintain direct connectivity.
- [UDP Tunneling](https://awesome-repositories.com/f/networking-communication/network-infrastructure-routing/network-proxying-tools/network-proxies/udp-tunneling.md) — Manages network connectivity by encapsulating and redirecting UDP traffic through proxy connections to ensure protocol compatibility. ([source](https://johnshall.github.io/Shadowrocket-ADBlock-Rules-Forever/lazy.conf))

### Security & Cryptography

- [Content Filtering](https://awesome-repositories.com/f/security-cryptography/application-and-system-security/browser-security/content-filtering-blocking/content-filtering.md) — Blocks network requests to known advertising, tracking, and malicious domains to prevent unauthorized data collection. ([source](https://johnshall.github.io/Shadowrocket-ADBlock-Rules-Forever/sr_cnip_ad.conf))
- [Traffic Interception Tools](https://awesome-repositories.com/f/security-cryptography/network-infrastructure-security/web-network-security/network-security/traffic-inspection-manipulation/traffic-interception-tools.md) — Intercepts and modifies web requests in real-time to filter content, block trackers, and redirect traffic for improved service access. ([source](https://johnshall.github.io/Shadowrocket-ADBlock-Rules-Forever/lazy_group.conf))
- [Traffic Inspection Tools](https://awesome-repositories.com/f/security-cryptography/traffic-inspection-tools.md) — Decrypts and inspects encrypted network traffic to enable granular content filtering and request modification.
