Инструменты пользователя

Инструменты сайта


tasks:blockads

Это старая версия документа!


Pi-hole

The Pi-hole® is a DNS sinkhole that protects your devices from unwanted content, without installing any client-side software.

Once the installer has been run, you will need to configure your router to have DHCP clients use Pi-hole as their DNS server which ensures that all devices connecting to your network will have content blocked without any further intervention.

If your router does not support setting the DNS server, you can use Pi-hole's built-in DHCP server; just be sure to disable DHCP on your router first (if it has that feature available).

As a last resort, you can always manually set each device to use Pi-hole as their DNS server.

Документация: https://docs.pi-hole.net/
Docker image: https://hub.docker.com/r/pihole/pihole/
Бложик: https://pi-hole.net/blog/

# Обновить
pihole -up

Установка

Методом № 2

# One-Step Automated Install
# Those who want to get started quickly and conveniently may install Pi-hole using the following command:
curl -sSL https://install.pi-hole.net | bash
# Alternative Install Methods
# Piping to bash is controversial, as it prevents you from reading code that is about to run on your system.
# Therefore, we provide these alternative installation methods which allow code review before installation:
# Method 1: Clone our repository and run
git clone --depth 1 https://github.com/pi-hole/pi-hole.git Pi-hole
cd "Pi-hole/automated install/"
sudo bash basic-install.sh
# Method 2: Manually download the installer and run
wget -O basic-install.sh https://install.pi-hole.net
sudo bash basic-install.sh

Выяснить, в каком чёрном списке находится домен

root@orangepione:~# pihole -q -exact vk.com
 Exact match found in exact whitelist
   vk.com
 Exact matches for vk.com found in:
  - https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_1_Russian/filter.txt
  - https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_1_Russian/filter.txt
  - https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_14_Annoyances/filter.txt
  - https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_14_Annoyances/filter.txt

Ошибки

DNSMASQ_WARN: reducing DNS packet size for nameserver XXX.XXX.XXX.XXX to 1232

Adblock

Три подписки, помогающие справиться с призывами отключить Adblock
https://easylist-downloads.adblockplus.org/antiadblockfilters.txt
https://raw.github.com/reek/anti-adblock-killer/master/anti-adblock-killer-filters.txt

Убрать сообщения о том, что сайт использует cookies
https://raw.githubusercontent.com/liamja/Prebake/master/obtrusive.txt
https://www.i-dont-care-about-cookies.eu/abp/

Реклама на Яндексе (Карты и т. д.)
https://easylist-downloads.adblockplus.org/cntblock.txt

Фильтры ADGuard
https://adguard.com/kb/ru/general/ad-filtering/adguard-filters/ (в т. ч. есть блок-лист для cookies)

Tampermonkey

Работает плохо, тормозит выдачу. Для Яндекса лучше подписаться на RU AdList: Counters в AdBlock.

Ещё одно расширение, которое умеет блокировать рекламу с Яндекса.
После его установки нужно добавить туда скрипт RU AdList JS Fixes Затем зайти в панель управления (клик по иконке Tampermonkey) и на вкладке «Настройки» активировать режим «Эксперт», после чего установить в экспериментальных опциях (в самом низу) режим встраивания «Мгновенный».

tasks/blockads.1725260141.txt.gz · Последнее изменение: 02.09.2024 06:55 — viacheslav

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki