mirror of
https://github.com/tanrax/maza-ad-blocking.git
synced 2024-11-23 15:45:41 +01:00
Add test
This commit is contained in:
parent
ac9fe2a3df
commit
3bbb0fe23a
19
README.md
19
README.md
@ -82,6 +82,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