Would it be possible to make your own self-hosted filter containing the Facebook-URL and add/remove subscription to it by using the adguard.enable_url
and adguard.disable_url
services in an automation?
I have a github repository with a fb, whatsapp and instagram filter
@Skeletorjus yes, probably using the urls provided by @gieljnssns I will make an automation to explicitly enable/disable facebook filtering urlā¦
Thanks guys!
Did it work?
Yes, tried yesterday, works perfect, thanks
hereās some basic usage with input boolean switch, you can change the trigger to timebased or whateverā¦
input_boolean:
allowfacebook:
name: Allow Facebook
# initial: on
icon: mdi:facebook
automation:
- id: enable_facebook
alias: Enable Facebook
hide_entity: true
initial_state: 'on'
trigger:
platform: state
entity_id: input_boolean.allowfacebook
to: 'on'
action:
- service: adguard.disable_url
data:
url: https://raw.githubusercontent.com/gieljnssns/Block_facebook_dns/master/adguard-facebook.txt
- id: disable_facebook
alias: Disable Facebook
hide_entity: true
initial_state: 'on'
trigger:
platform: state
entity_id: input_boolean.allowfacebook
to: 'off'
action:
- service: adguard.enable_url
data:
url: https://raw.githubusercontent.com/gieljnssns/Block_facebook_dns/master/adguard-facebook.txt
Iāve added 2 extra filters, for youtube and tiktok
So I renamed my repository to Social-media-Blocklists because itās not only for facebook anymoreā¦
does it block facebook, youtube
or it blocks ads from facebook and youtube
It should block whole Facebook and YouTube.
Hi all, maybe a stupid question:
Iāve installed the addon on my hassio running inside my synology nas.
Now itās monitoring this ip adresses:
- 127.0.0.1
- ::1
- 192.168.2.100
- 172.19.0.1
- 172.21.0.1
- 172.24.0.1
- 172.20.0.1
- 172.30.32.1
- 172.17.0.1
- 172.18.0.1
- 172.22.0.1
(192.168.2.100 is my NAS IP running hassio). Do I have to change DSN to 192.168.2.100 on my router to allow ad guard to monitor all my traffic?
yep, if you donāt, the traffic wonāt go to AdGuard, right?
In case of a router running OpenWRT, you have to go to your LAN interface settings, DHCP server and Advanced Settings:
I know it was a stupid question but I wanted to be sure before doing it.
Thanks
@joem I have Asus Merlin firmware running on Netgear R7000 (I know, itās complicated) so page is different but similar. Thank you!
Release v2.3.0
This is a general maintenance release.
Changes
- Upgrade Adguard to 0.100.5 (#41)
- Updates maintenance/license year to 2020
- Upgrades add-on base image to v6.0.1
- Funding adjustments
- Fixes some spelling and grammar
- Adjust add-on installation instructions
- Upgrades nginx to 1.16.1-r4
- Upgrades lua-resty-http to 0.15-r0
- Upgrades AdGuard Home to v0.100.8
- Fixes some spelling and grammar
Questions? Join our Discord server! https://discord.me/hassioaddons
Enjoying my add-ons? Consider supporting my work:
https://github.com/sponsors/frenck or https://patreon.com/frenck
Since installing v2.3.0, the switch switch.adguard_protection no longer works. If I toggle it to off (developer tools/ states), it turns off for about 1 second, the toggles back on again. All other switches ( switch.adguard_parental_control etc ) behave normally. I can turn off AdGuard Protection from the ingress dashboard still. I love this add-on, but I do miss the ability to turn off the master switch from my Lovelace home page.
Any help would be appreciated!
Please raise an issue with Home Assistant in those cases, so it can be address/fixed/looked at: https://github.com/home-assistant/home-assistant/issues
Will do -thanks!
ā¦ for anyone with the same problem : https://github.com/home-assistant/home-assistant/issues/30519
Hi Franck,
Since updating Adguard to v2.3.0, I am unable to resolve DNS requests. I had to switch back to PiHole.
I removed the add-on and reinstalled the add-on but still no resolving.
Any ideas as to what it can be?
There is not much from a āit doesnāt workā description I can do to help you.
Hi Franck,
I understand that.
I see an error in the trace log: Couldnāt load filter 1 contents due to stat /data/adguard/data/filters/1.txt: no such file or directory
Here is the whole trace log:
2020/01/09 06:42:08 [info] Upstream 0: https://dns.quad9.net:443/dns-query
2020/01/09 06:42:08 [error] Couldnāt load filter 1 contents due to stat /data/adguard/data/filters/1.txt: no such file or directory
2020/01/09 06:42:08 [info] Go to http://127.0.0.1:45158
2020/01/09 06:42:08 [info] Starting the DNS proxy server
2020/01/09 06:42:08 [info] Ratelimit is enabled and set to 20 rps
2020/01/09 06:42:08 [info] The server is configured to refuse ANY requests
2020/01/09 06:42:08 [info] DNS cache is enabled
2020/01/09 06:42:08 [info] Creating the UDP server socket
2020/01/09 06:42:08 [info] Listening to udp://[::]:53
2020/01/09 06:42:08 [info] Creating the TCP server socket
2020/01/09 06:42:08 [info] Listening to tcp://[::]:53
2020/01/09 06:42:08 [info] Entering the UDP listener loop on [::]:53
2020/01/09 06:42:08 [info] Entering the tcp listener loop on [::]:53
2020/01/09 06:42:08 [info] Couldnāt request filter from URL https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt, skipping: Get https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt: couldnāt initialize HTTP client or transport, cause: couldnāt initialize HTTP transport, cause: couldnāt bootstrap https://dns.quad9.net:443/dns-query, cause: couldnāt find any suitable IP address for host dns.quad9.net
2020/01/09 06:42:08 [info] Failed to update filter https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt: Get https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt: couldnāt initialize HTTP client or transport, cause: couldnāt initialize HTTP transport, cause: couldnāt bootstrap https://dns.quad9.net:443/dns-query, cause: couldnāt find any suitable IP address for host dns.quad9.net
2020/01/09 06:42:08 [error] os.Chtimes(): chtimes /data/adguard/data/filters/1.txt: no such file or directory