Compare commits

...

2 Commits

Author SHA1 Message Date
Andros Fenollosa
b2a4d7217b Update index 2024-11-13 09:18:58 +01:00
Andros Fenollosa
3bbb0fe23a Add test 2024-11-13 09:18:18 +01:00

View File

@ -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`.