Configuration [Документация VAS Experts]

Configuration

The option is enabled by configuration parameter in /etc/dpi/fastdpi.conf:

ad_server=www.adserver.ru

Here www.adserver.ru is the name or the address of the new content server.

The list of URLs to replace is supplied as a text file. Each line of this file contains one URL (no http:// prefix).

Example: the list to replace ad content Yandex Direct and Google AdWords:

pagead2.googlesyndication.com/pagead/show_ads.js
an.yandex.ru/system/context.js

The list is converted into an internal format and placed to /var/lib/dpi. DPI platform loads it from the latest location:

cat my_ad_list.txt|url2dic my_ad_list.dic
mv my_ad_list.dic /var/lib/dpi/adlist.bin
Advertisement blocking using https/quic protocols is carried out using the hosts list
The redirection to ad_server in this case is not performed.

Example: preparing a list for the ad blocking in youtube:

cat <<EOF|url2dic /var/lib/dpi/adlistsni.bin
pagead2.googlesyndication.com
googleads.g.doubleclick.net
googleads4.g.doubleclick.net
pubads.g.doubleclick.net
ad.doubleclick.net
securepubads.g.doubleclick.net
www.googleadservices.com
EOF

Example: preparing a list to block popular ads:

adservice.google.com
pagead2.googlesyndication.com
ads.adfox.ru
yabs.yandex.ru