| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
🌐 Languages: English | Русский
Allows to set Redirect and Block rules to your Cloudflare and NextDNS accounts.
Ready-to-run via GitHub Actions. Video guide
General comparison: Cloudflare vs NextDNS
Setup exclude redirects (optional)
Both providers have free plans, but there are some limitations
with 2 permissions:
Account.Zero Trust : Edit Account.Account Firewall Access Rules : Edit
Set API token to environment variable AUTH_SECRET
Set Account ID to environment variable CLIENT_ID
Generate API KEY, from https://my.nextdns.io/account and set as environment variable AUTH_SECRET
Click on NextDNS logo. On the opened page, copy ID from Endpoints section. Set it as environment variable CLIENT_ID
Set environment variable DNS with DNS provider name (Cloudflare or NextDNS)
Each data source must be a link to a hosts file, e.g. https://raw.githubusercontent.com/Internet-Helper/GeoHideDNS/refs/heads/main/hosts/hosts
You can provide multiple sources split by coma: https://first.com/hosts,https://second.com/hosts
Set sources to environment variable REDIRECT
Script will parse sources, filtering out redirects to 0.0.0.0 and 127.0.0.1
Thus, parsing lines:
0.0.0.0 domain.to.block 1.2.3.4 domain.to.redirect 127.0.0.1 another.to.block
will keep only 1.2.3.4 domain.to.redirect for the further redirect processing.
Set sources to environment variable BLOCK
Script will parse sources, keeping only redirects to 0.0.0.0 and 127.0.0.1.
Thus, parsing lines
0.0.0.0 domain.to.block 1.2.3.4 domain.to.redirect 127.0.0.1 another.to.block
will keep only domain.to.block and another.to.block for the further block processing.
Put domains to environment variable EXCLUDE_REDIRECT separated by coma, e.g. instagram.com,twitch.com
These domains and their subdomains:
All profiles get similar settings. That means BLOCK, REDIRECT and EXCLUDE_REDIRECT are shared.
Put your profiles separated by coma without whitespace into related environment variables. E.g., two NextDNS profiles must be set as shown:
In addition to setting above, list provider for each profile in environment variable DNS. For example:
Previously generated data will be removed. Script recognizes old data by marks:
After removing old data, new lists and rules will be generated and applied.
If you want to clear Cloudflare block/redirect settings, launch the script without providing sources in related environment variables. E.g. providing no value for environment variable BLOCK will cause removing old related data: lists and rules used to setup blocks.
For REDIRECT:
For BLOCK:
Previously generated data is removed ONLY when both BLOCK and REDIRECT sources were not provided.
| Back | FazBrowse Home | New Git URL |