mirror of
https://github.com/tanrax/maza-ad-blocking.git
synced 2024-11-23 07:35:41 +01:00
Compare commits
2 Commits
ac9fe2a3df
...
b2a4d7217b
Author | SHA1 | Date | |
---|---|---|---|
|
b2a4d7217b | ||
|
3bbb0fe23a |
20
README.md
20
README.md
@ -28,6 +28,7 @@ Simple, native and efficient **local ad blocker**. Bash script compatible with *
|
|||||||
|
|
||||||
- [Commands](#-commands)
|
- [Commands](#-commands)
|
||||||
- [Install or update](#%EF%B8%8F-install-or-update)
|
- [Install or update](#%EF%B8%8F-install-or-update)
|
||||||
|
- [Check if you block ads](#-check-if-you-block-ads)
|
||||||
- [Auto update of domains to be blocked](#-auto-update-of-domains-to-be-blocked)
|
- [Auto update of domains to be blocked](#-auto-update-of-domains-to-be-blocked)
|
||||||
- [Uninstall](#-uninstall)
|
- [Uninstall](#-uninstall)
|
||||||
- [Not blocking certain domains](#-not-blocking-certain-domains)
|
- [Not blocking certain domains](#-not-blocking-certain-domains)
|
||||||
@ -82,6 +83,25 @@ Optional but recommended, make a backup of your hosts file.
|
|||||||
sudo cp /etc/hosts /etc/hosts.backup
|
sudo cp /etc/hosts /etc/hosts.backup
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## 🧪 Check if you block ads
|
||||||
|
|
||||||
|
You can run a test to see if the domains are blocked.
|
||||||
|
|
||||||
|
For example, you can run the following command.
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
curl googleadservices.com
|
||||||
|
```
|
||||||
|
|
||||||
|
If you get an error like this, it means that the domain is blocked.
|
||||||
|
|
||||||
|
``` shell
|
||||||
|
curl: (7) Failed to connect to googleadservices.com port 80 after 2 ms: Could not connect to server
|
||||||
|
```
|
||||||
|
|
||||||
|
But if you get a response with HTML, it means that the domain is not blocked (maybe a 404 error).
|
||||||
|
|
||||||
|
|
||||||
## 🤖 Auto update of domains to be blocked
|
## 🤖 Auto update of domains to be blocked
|
||||||
|
|
||||||
Open your `cron`.
|
Open your `cron`.
|
||||||
|
Loading…
Reference in New Issue
Block a user