mirror of
https://github.com/pi-hole/docs.git
synced 2025-12-20 03:08:45 +00:00
Remove HTML tables (#318)
This commit is contained in:
@@ -24,8 +24,7 @@
|
|||||||
"img",
|
"img",
|
||||||
"strong",
|
"strong",
|
||||||
"p",
|
"p",
|
||||||
"sub",
|
"sub"
|
||||||
"table", "tbody", "th", "tr", "td"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"MD035": {
|
"MD035": {
|
||||||
|
|||||||
@@ -10,73 +10,64 @@ The scripts will first parse `whitelist.txt` or `blacklist.txt` for any changes,
|
|||||||
|
|
||||||
Each script accepts the following parameters:
|
Each script accepts the following parameters:
|
||||||
|
|
||||||
<table>
|
| Parameter | Description |
|
||||||
<tbody>
|
|------------|--------------------------------------------------------------------------------------------------|
|
||||||
<tr>
|
| `[domain]` | Fully qualified domain name you wish to add or remove. You can pass any number of domains. |
|
||||||
<th><code>[domain]</code></th>
|
| `-d` | Removal mode. Domains will be removed from the list, rather than added |
|
||||||
<td>Fully qualified domain name you wish to add or remove. You can pass any number of domains.</td>
|
| `-nr` | Update blacklist without refreshing pihole-FTL |
|
||||||
</tr>
|
| `-f` | Force delete cached blocklist content |
|
||||||
<tr>
|
| `-q` | Quiet mode. Console output is minimal. Useful for calling from another script (see `gravity.sh`) |
|
||||||
<th><code>-d</code></th>
|
|
||||||
<td>Removal mode. Domains will be removed from the list, rather than added</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th><code>-nr</code></th>
|
|
||||||
<td>Update blacklist without refreshing dnsmasq</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th><code>-f</code></th>
|
|
||||||
<td>Force delete cached blocklist content</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th><code>-q</code></th>
|
|
||||||
<td>Quiet mode. Console output is minimal. Useful for calling from another script (see <code>gravity.sh</code>)</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
Domains passed are parsed by the script to ensure they are valid domains. If a domain is invalid it will be ignored.
|
Domains passed are parsed by the script to ensure they are valid domains. If a domain is invalid it will be ignored.
|
||||||
|
|
||||||
#### Example `pihole -w` usages
|
#### Example `pihole -w` usages
|
||||||
|
|
||||||
<table>
|
* Attempt to add one or more domains to the whitelist and reload dnsmasq:
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<th><code>pihole -w domain1 [domain2...]</code></th>
|
|
||||||
<td>Attempt to add one or more domains to the whitelist and reload dnsmasq.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th><code>pihole -w -nr domain1 [domain2...]</code></th>
|
|
||||||
<td>Attempt to add one or more domains to the whitelist, but do not reload dnsmasq.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th><code>pihole -w -f domain1 [domain2...]</code></th>
|
|
||||||
<td>Attempt to add one or more domains to the whitelist and force dnsmasq to reload</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
To remove domains from the whitelist:
|
```bash
|
||||||
Add `-d` as an additional argument (e.g `pihole -w -d domain1 [domain2...]`)
|
pihole -w domain1 [domain2...]
|
||||||
|
```
|
||||||
|
|
||||||
|
* Attempt to add one or more domains to the whitelist, but do not reload dnsmasq:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pihole -w -nr domain1 [domain2...]
|
||||||
|
```
|
||||||
|
|
||||||
|
* Attempt to add one or more domains to the whitelist and force dnsmasq to reload:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pihole -w -f domain1 [domain2...]
|
||||||
|
```
|
||||||
|
|
||||||
|
To remove domains from the whitelist add `-d` as an additional argument, e.g:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pihole -w -d domain1 [domain2...]
|
||||||
|
```
|
||||||
|
|
||||||
#### Example `pihole -b` usages
|
#### Example `pihole -b` usages
|
||||||
|
|
||||||
<table>
|
* Attempt to add one or more domains to the blacklist and reload dnsmasq:
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<th><code>pihole -b domain1 [domain2...]</code></th>
|
|
||||||
<td>Attempt to add one or more domains to the blacklist and reload dnsmasq.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th><code>pihole -b -nr domain1 [domain2...]</code></th>
|
|
||||||
<td>Attempt to add one or more domains to the blacklist, but do not reload dnsmasq.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th><code>pihole -b -f domain1 [domain2...]</code></th>
|
|
||||||
<td>Attempt to add one or more domains to the blacklist and force dnsmasq to reload</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
To remove domains from the blacklist:
|
```bash
|
||||||
Add `-d` as an additional argument (e.g `pihole -b -d domain1 [domain2...]`)
|
pihole -b domain1 [domain2...]
|
||||||
|
```
|
||||||
|
|
||||||
|
* Attempt to add one or more domains to the blacklist, but do not reload dnsmasq:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pihole -b -nr domain1 [domain2...]
|
||||||
|
```
|
||||||
|
|
||||||
|
* Attempt to add one or more domains to the blacklist and force dnsmasq to reload:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pihole -b -f domain1 [domain2...]
|
||||||
|
```
|
||||||
|
|
||||||
|
To remove domains from the blacklist add `-d` as an additional argument, e.g:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pihole -b -d domain1 [domain2...]
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user