-
-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reflect changes to the
pihole
command, plus move whitelist/blacklis…
…t -> allowlist/denylist Signed-off-by: Adam Warner <[email protected]>
- Loading branch information
Showing
4 changed files
with
54 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
### What Domains To Allow or Deny | ||
|
||
[This extension for Google Chrome](https://chrome.google.com/webstore/detail/adamone-assistant/fdmpekabnlekabjlimjkfmdjajnddgpc) can help you in finding out which domains you need to allow. | ||
|
||
### How to Allow or Deny Domains | ||
|
||
There are scripts to aid users in adding or removing domains to the allowlist or denylist from the CLI | ||
|
||
Each script accepts the following parameters: | ||
|
||
| Parameter | Description | | ||
|------------|--------------------------------------------------------------------------------------------------| | ||
| `[domain]` | Fully qualified domain name you wish to add or remove. You can pass any number of domains. | | ||
| `remove` | Removal mode. Domains will be removed from the list, rather than added | | ||
| `-q` | Quiet mode. Console output is minimal. Useful for calling from another script (see `gravity.sh`) | | ||
|
||
Domains passed are parsed by the script to ensure they are valid domains. If a domain is invalid it will be ignored. | ||
|
||
By default, Allowed/Denied domains are associated with the Default Group only. If the domain should be associated with other groups, these will need to be selected in **Group Management > Domains** within the Pi-Hole web frontend. | ||
|
||
#### Example `pihole allow` usages | ||
|
||
* Attempt to add one or more domains to the allowlist and reload pihole-FTL: | ||
|
||
```bash | ||
pihole allow domain1 [domain2...] | ||
``` | ||
|
||
To remove domains from the allowlist add `remove` as an additional argument, e.g: | ||
|
||
```bash | ||
pihole allow remove domain1 [domain2...] | ||
``` | ||
|
||
#### Example `pihole deny` usages | ||
|
||
* Attempt to add one or more domains to the denylist and reload pihole-FTL: | ||
|
||
```bash | ||
pihole deny domain1 [domain2...] | ||
``` | ||
|
||
To remove domains from the denylist add `remove` as an additional argument, e.g: | ||
|
||
```bash | ||
pihole deny remove domain1 [domain2...] | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters