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

This is an old revision of the document!


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).

For 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